CN113408500B - Fingerprint card and working method thereof, electronic equipment and computer readable storage medium - Google Patents

Fingerprint card and working method thereof, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113408500B
CN113408500B CN202110951752.6A CN202110951752A CN113408500B CN 113408500 B CN113408500 B CN 113408500B CN 202110951752 A CN202110951752 A CN 202110951752A CN 113408500 B CN113408500 B CN 113408500B
Authority
CN
China
Prior art keywords
fingerprint
card
module
response
mcu module
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
CN202110951752.6A
Other languages
Chinese (zh)
Other versions
CN113408500A (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN202110951752.6A priority Critical patent/CN113408500B/en
Publication of CN113408500A publication Critical patent/CN113408500A/en
Application granted granted Critical
Publication of CN113408500B publication Critical patent/CN113408500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention provides a fingerprint card and a working method thereof, electronic equipment and a computer readable storage medium, and belongs to the field of electronic products. The fingerprint card comprises a security module, an MCU module, a carrier band and an NFC module, and the method comprises the following steps: the method comprises the steps that an MCU module in a fingerprint card receives instruction data sent by card reading equipment, whether fingerprints need to be verified or not is judged according to the instruction data, if yes, the fingerprints are verified, if the fingerprints pass verification, the operation type of the instruction data is determined through the MCU module, corresponding operation is executed according to the operation type to obtain response data, the response data are sent to the card reading equipment, if the verification fails, the response data including fingerprint verification failure data are generated, and the response data are sent to the card reading equipment. The method and the device enable the safety card to realize function expansion on the basis of not changing the firmware code of the safety chip which passes the authentication.

Description

Fingerprint card and working method thereof, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of electronic products, and in particular, to a fingerprint card, a working method thereof, an electronic device, and a computer-readable storage medium.
Background
The chip card is made in the form of a card by embedding a security chip in a card base. The communication mode between the chip card and the reader-writer can be contact type or non-contact type. However, in the current chip card, because the security chip firmware in the existing chip card is authenticated, if other functions need to be added, such as a fingerprint verification function, the security chip firmware code needs to be modified for realization, however, the difficulty of modifying the security chip firmware code is large, and the modified security chip firmware needs to be authenticated again, which is tedious in work. Therefore, how to realize the card fingerprint verification function on the premise of not changing the firmware of the security chip in the card is a problem to be solved urgently at present.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present application provide a fingerprint card, a working method, an electronic device, and a computer-readable storage medium, which enable a standard security card to implement a fingerprint authentication extension function.
On one hand, the application provides a working method of a fingerprint card, the fingerprint card comprises a security module, an MCU module, a carrier band and an NFC module, and the method comprises the following steps:
step S1, electrifying and initializing an MCU module in the fingerprint card;
step S2, the MCU module in the fingerprint card receives instruction data sent by a card reading device, whether the fingerprint needs to be verified is judged according to the instruction data, if so, the step S3 is executed, otherwise, the step S4 is executed;
step S3, the fingerprint card acquires the fingerprint information input by the user through the MCU module, compares the acquired fingerprint information with the stored fingerprint information, if the comparison is passed, the step S4 is executed, otherwise, response data including fingerprint verification failure data is generated, and the step S5 is executed;
step S4, the fingerprint card determines the operation type of the instruction data through the MCU module, executes corresponding operation according to the operation type to obtain response data, and executes step S5;
step S5, the fingerprint card sends response data to the card reading device, and the step S2 is returned;
the receiving of the instruction data sent by the card reading device by the MCU module in the fingerprint card is specifically as follows: the MCU module in the fingerprint card receives instruction data sent by card reading equipment through the carrier tape; the sending of the response data by the fingerprint card to the card reading device specifically includes: the fingerprint card sends response data to the card reading equipment through the carrier tape;
or, the receiving, by the MCU module in the fingerprint card, the instruction data sent by the card reading device specifically includes: the MCU module in the fingerprint card receives instruction data sent by card reading equipment through the NFC module; the sending of the response data by the fingerprint card to the card reading device specifically includes: and the fingerprint card sends response data to the card reading equipment through the NFC module.
On the other hand, the application provides a fingerprint card, which comprises a security module, an MCU module, a carrier band and an NFC module;
the MCU module is used for power-on initialization; the fingerprint verification device is also used for receiving instruction data sent by the card reading device and judging whether the fingerprint needs to be verified according to the instruction data; the fingerprint acquisition module is also used for acquiring fingerprint information input by a user and comparing the acquired fingerprint information with the stored fingerprint information; the data processing device is also used for determining the operation type of the instruction data and executing corresponding operation according to the operation type to obtain response data; the fingerprint verification device is also used for generating response data comprising fingerprint verification failure data when the fingerprint information comparison fails; the NFC module is also used for sending response data to the card reading equipment through the carrier tape or the NFC module; the NFC module is also used for receiving instruction data sent by the card reading equipment through the carrier tape or the NFC module;
the carrier band is used for receiving the instruction data sent by the card reading equipment and sending response data to the card reading equipment;
and the NFC module is used for receiving the instruction data sent by the card reading equipment and sending response data to the card reading equipment.
In another aspect, the present application provides an electronic device, comprising: a memory for storing non-transitory computer readable instructions; and a processor for executing the computer readable instructions such that the computer readable instructions, when executed by the processor, implement a method of operation of the fingerprint card.
In yet another aspect, the present application provides a computer-readable storage medium storing non-transitory computer-readable instructions that, when executed by a computer, cause the computer to perform a method of fingerprint card work.
The technical scheme provided by the embodiment of the application has the beneficial effects that: the method and the device can realize the function expansion of the card on the basis of not changing the authenticated firmware code of the security chip.
Drawings
Fig. 1 is a flowchart of a working method of a fingerprint card provided in embodiment 1 of the present application;
fig. 2 is a flowchart of a working method of a fingerprint card provided in embodiment 2 of the present application;
fig. 3 is a flowchart of a working method of a fingerprint card provided in embodiment 3 of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example 1
The application provides a working method of a fingerprint card, wherein the fingerprint card specifically comprises an MCU module, a security module, a carrier band and an NFC module; the MCU module is used for carrying out data transmission with the card reading equipment through the carrier tape and also can be used for carrying out data transmission with the card reading equipment through the NFC module.
As shown in fig. 1, a working method of a fingerprint card specifically includes:
101, electrifying and initializing an MCU module in a fingerprint card;
102, receiving instruction data sent by a card reading device by an MCU module in the fingerprint card, judging whether the fingerprint needs to be verified according to the instruction data, if so, executing a step 103, otherwise, executing a step 104;
optionally, in this embodiment, the determining whether the fingerprint needs to be verified according to the instruction data specifically includes: judging whether the instruction data is an application selection instruction or not by an MCU module in the fingerprint card, if so, verifying the fingerprint, and otherwise, not verifying the fingerprint;
optionally, in this embodiment, the determining whether the fingerprint needs to be verified specifically includes: judging whether the instruction data is a verification instruction or not by an MCU module in the fingerprint card according to the instruction data, if so, verifying the fingerprint, otherwise, not verifying the fingerprint;
optionally, in this embodiment, step 102 may be replaced by: the MCU module in the fingerprint card verifies the fingerprint, if the verification is passed, the instruction data sent by the card reading equipment is received, the step 104 is executed, and if the verification is failed, the step is ended;
103, the fingerprint card acquires fingerprint information input by a user through the MCU module, judges whether the acquired fingerprint information is the same as the stored fingerprint information, if so, executes step 104, otherwise, generates response data including fingerprint verification failure data, and executes step 105;
104, the fingerprint card determines the operation type of the instruction data through the MCU module, executes corresponding operation according to the operation type to obtain response data, and executes step 105;
optionally, in this embodiment, in step 104, executing a corresponding operation according to the operation type to obtain response data includes: if the operation type is the first type, the fingerprint card sends the instruction data to the security module through the MCU module, and receives response data returned by the security module through the MCU module;
preferably, the sending of the instruction data to the security module by the fingerprint card through the MCU module is specifically: the fingerprint card sends the instruction data to the safety module through a contact interface of the MCU module;
in the present embodiment, the operation type of the verification instruction is of the first type; specifically, the response data obtained by executing the corresponding operation according to the operation type is specifically: the MCU module sends the PIN code stored in the MCU module to the security module through the contact interface so that the security module verifies the PIN code, receives a verification result sent by the security module and executes the step 105;
in the embodiment, the operation type of the selected application instruction belongs to a first type; specifically, the response data obtained by executing the corresponding operation according to the operation type is specifically: the MCU module sends an application selection instruction to the security module through the contact interface, so that the security module selects a corresponding application according to the application identifier, receives an application selection response sent by the security module, and executes step 105;
optionally, in this embodiment, in step 104, executing a corresponding operation according to the operation type to obtain response data includes: and if the operation type is the second type, the fingerprint card executes corresponding operation according to the instruction data through the MCU module to obtain response data.
The first type is specifically the operation processing of the security module, and the second type is specifically the operation processing of only the MCU module.
And step 105, the fingerprint card sends response data to the card reading device, and the step 102 is returned.
In this embodiment, the receiving, by the MCU module in the fingerprint card, the instruction data sent by the card reading device specifically includes: an MCU module in the fingerprint card receives instruction data sent by card reading equipment through a carrier tape; the sending of the response data to the card reading device by the fingerprint card is specifically as follows: the fingerprint card sends response data to the card reading equipment through the carrier tape;
or, the receiving of the instruction data sent by the card reading device by the MCU module in the fingerprint card is specifically: an MCU module in the fingerprint card receives instruction data sent by the card reading equipment through an NFC module; the sending of the response data to the card reading device by the fingerprint card is specifically as follows: and the fingerprint card sends response data to the card reading device through the NFC module.
In this embodiment, optionally, the sending, by the fingerprint card, the response data to the card reading device specifically includes: the fingerprint card judges the current communication mode through the MCU module, if the current communication mode is non-contact communication, response data is sent to the card reading equipment through the NFC module, and if the current communication mode is contact communication, the response data is sent to the card reading equipment through the carrier band.
Preferably, the receiving, by the MCU module through the NFC module, the instruction data sent by the card reading device specifically includes: the MCU module judges whether instruction data sent by the card reading device is received or not according to the interrupt signal sent by the NFC module;
optionally, in this embodiment, in step 102, before receiving the instruction data sent by the card reading device, the method further includes: the MCU module returns a reset response to the card reading equipment through the carrier tape, receives a communication rate configuration request sent by the card reading equipment through the carrier tape, and returns a communication rate configuration response to the card reading equipment;
preferably, before the MCU module returns a reset response to the card reading device through the carrier tape, the method further includes: the security module in the fingerprint card is electrified and initialized, and the MCU module in the fingerprint card receives the reset response sent by the security module through the contact interface.
Further preferably, after the MCU module in the fingerprint card receives the reset response sent by the security module through the contact interface, the method further includes:
step A1, the MCU module in the fingerprint card judges the configuration mode according to the reset response, if the configuration mode is the negotiation mode, the step A2 is executed, and if the configuration mode is the special mode, the step A3 is executed;
step A2, the MCU module in the fingerprint card sends a communication rate configuration request to the security module through the contact interface, receives a communication rate configuration response returned by the security module through the contact interface, and executes step A3;
and step A3, the MCU module in the fingerprint card sets a transmission mode according to the communication protocol mode in the reset response.
Specifically, after receiving the reset response sent by the MCU module, the card reading device includes:
step P1, the card reading device judges the configuration mode according to the reset response, if the configuration mode is the negotiation mode, the step P2 is executed, and if the configuration mode is the special mode, the step P3 is executed;
step p2, the card reading equipment sends a communication rate configuration request to the fingerprint card, receives a communication rate configuration response returned by the fingerprint card, and executes step p 3;
and p3, the card reading device judges the communication protocol mode, if the communication protocol mode is the first mode, the data is transmitted according to the characters, and if the communication protocol mode is the second mode, the data is transmitted according to the blocks.
Optionally, in this embodiment, in step 102, before receiving the instruction data sent by the card reading device, the method further includes: powering on the NFC module, executing initialization stage operation, and triggering the MCU module to execute step 102;
specifically, performing the initialization phase operation includes: receiving a selective response request sent by the card reading equipment, acquiring a selective response, and sending the selective response to the card reading equipment; receiving a communication rate configuration request sent by card reading equipment, executing configuration operation, and returning a communication rate configuration response;
further specifically, the acquiring of the selection response specifically includes: the NFC module obtains a self-stored selection response, or the NFC module sends a selection response request to the MCU module and receives the selection response returned by the MCU module.
Further specifically, the executing the configuration operation specifically includes: and the NFC module carries out configuration according to the communication rate configuration parameters stored in the NFC module, or the NFC module sends a communication rate configuration request to the MCU module and receives a communication rate configuration response returned by the MCU module.
Preferably, in this embodiment, before receiving the instruction data sent by the card reading device in step 102, the method further includes:
b1, electrifying and initializing the security module in the fingerprint card;
step B2, the MCU module in the fingerprint card sends a request for acquiring a reset response to the security module through the contact interface, and receives a reset response returned by the security module through the contact interface;
step B3, the MCU module in the fingerprint card judges the configuration mode according to the reset response, if the configuration mode is the negotiation mode, the step B4 is executed, and if the configuration mode is the special mode, the step B5 is executed;
step B4, the MCU module in the fingerprint card sends a communication rate configuration request to the security module through the contact interface, receives a communication rate configuration response returned by the security module through the contact interface, and executes step B5;
step B5, the MCU module in the fingerprint card sets the transmission mode according to the communication protocol mode in the reset response, and step 102 is executed.
Optionally, in this embodiment, step 102 further includes, before:
step C1, powering on an NFC module in the fingerprint card;
step C2, the MCU module in the fingerprint card receives a selection response request sent by the card reading device through the NFC module;
step C3, electrifying and initializing the security module in the fingerprint card;
step C4, the MCU module in the fingerprint card sends a request for acquiring a reset response to the security module through the contact interface, receives the reset response returned by the security module through the contact interface, organizes response data according to the reset response, and sends the response data to the card reading device through the NFC module;
step C5, the MCU module in the fingerprint card receives a communication rate configuration request sent by the card reading device through the NFC module, executes a communication rate configuration operation, and sends communication rate configuration parameters to the card reading device through the NFC module;
and step C6, the MCU module in the fingerprint card sends a communication rate setting request to the security module through the contact interface, receives and stores the communication rate configuration parameters sent by the security module through the contact interface, and executes step 102.
By adopting the embodiment, on the basis of not changing the standard security chip, the standard security card can realize extended functions such as fingerprint authentication by improving the physical layer instead of modifying the firmware code of the security chip in the prior art, and meanwhile, the MCU module can convert the instruction data received from the card reading device into the instruction data required by the security module, so that the fingerprint card has stronger adaptability.
Example 2
The application provides a working method of a fingerprint card based on embodiment 1, wherein the fingerprint card specifically comprises an MCU module, a security module, a carrier tape and an NFC module; the MCU module is connected to the NFC module, the carrier tape, and the security module, and is configured to receive an instruction and data sent by the card reading device through the NFC module or the carrier tape, and send the instruction and data to the security module.
As shown in fig. 2, a working method of a fingerprint card specifically includes:
step 201, electrifying and initializing an MCU module in a fingerprint card;
in this embodiment, in an implementation manner, step 201 further includes: the NFC module is powered on and initialized, and the security module is powered on and initialized;
step 201 further comprises:
d1, the MCU module in the fingerprint card receives a selection response request sent by the card reading device through the NFC module, sends an acquisition reset response request to the security module through the contact interface, receives a reset response returned by the security module through the contact interface, and stores corresponding parameters;
d2, selecting response data by the MCU module in the fingerprint card according to the reset response organization, and sending the selected response data to the card reading equipment through the NFC module;
d3, the MCU module in the fingerprint card receives a communication rate setting request sent by the card reading equipment through the NFC module, executes communication rate configuration operation, and sends communication rate configuration parameters to the card reading equipment through the NFC module;
and D4, the MCU module in the fingerprint card sends a communication rate setting request to the security module through the contact interface, receives and stores the communication rate configuration parameters sent by the security module through the contact interface, and executes step 202.
In this embodiment, another implementable manner, the step 201 further includes: powering on and initializing the NFC module;
step 201 further comprises:
step E1, the NFC module executes initialization phase operation, and the MCU module is triggered to execute step 202;
e2, electrifying and initializing the security module;
e3, the MCU module in the fingerprint card sends a request for acquiring a reset response to the security module through the contact interface, and receives the reset response returned by the security module through the contact interface;
step E4, the MCU module in the fingerprint card judges the configuration mode according to the received reset response, if the configuration mode is the negotiation mode, the step E5 is executed, and if the configuration mode is the special mode, the step E6 is executed;
e5, the MCU module in the fingerprint card sends a communication rate configuration request to the security module through the contact interface, receives a communication rate configuration response returned by the security module through the contact interface, and executes the step E6;
step E6, the MCU module in the fingerprint card sets a transmission mode according to the communication protocol mode in the reset response, and step 202 is executed;
specifically, in step E1, the performing, by the NFC module, an initialization phase operation specifically includes: receiving a selective response request sent by card reading equipment, acquiring a selective response, and sending the selective response to the card reading equipment; receiving a communication rate configuration request sent by card reading equipment, executing configuration operation, and returning a communication rate configuration response;
further, the acquiring of the selection response specifically includes: the NFC module acquires a self-stored selection response, or the NFC module sends a selection response request to the MCU module and receives the selection response returned by the MCU module;
further, the executing the configuration operation specifically includes: and the NFC module carries out configuration according to the communication rate configuration parameters stored in the NFC module, or the NFC module sends a communication rate configuration request to the MCU module and receives a communication rate configuration response returned by the MCU module.
In this embodiment, in another implementable manner, the step 201 further includes: the NFC module is powered on and initialized, and the security module is powered on and initialized;
step 201 further comprises:
step F1, the NFC module executes initialization phase operation, and the MCU module is triggered to execute step 202;
the step 201 also includes the operations from step E3 to step E6;
step F1 is executed in parallel with steps E3 to E6.
Step 202, the MCU module in the fingerprint card receives instruction data sent by the card reading device through the NFC module, whether the fingerprint needs to be verified is judged according to the instruction data, if so, step 203 is executed, and if not, step 204 is executed;
optionally, judging whether the fingerprint needs to be verified according to the instruction data specifically includes: and judging whether the instruction data is an application selection instruction or not by the MCU module in the fingerprint card, if so, verifying the fingerprint, and otherwise, not verifying the fingerprint.
Optionally, in this embodiment, the determining whether the fingerprint needs to be verified specifically includes: judging whether the instruction data is a verification instruction or not by an MCU module in the fingerprint card according to the instruction data, if so, verifying the fingerprint, otherwise, not verifying the fingerprint;
optionally, in this embodiment, step 202 may be replaced by: the MCU module in the fingerprint card verifies the fingerprint, if the verification is passed, the instruction data sent by the card reading equipment is received, the step 104 is executed, and if the verification is failed, the step is ended;
step 203, the fingerprint card acquires fingerprint information input by a user through the MCU module, judges whether the acquired fingerprint information is the same as the stored fingerprint information, if so, executes step 204, otherwise, generates response data including fingerprint verification failure data, sends the response data to the card reading device through the NFC module, and returns to step 202;
step 204, the fingerprint card determines the operation type of the instruction data through the MCU module, executes corresponding operation according to the operation type to obtain response data, and executes step 205;
optionally, in this embodiment, in step 204, executing a corresponding operation according to the operation type to obtain response data includes: if the operation type is the first type, the fingerprint card sends the instruction data to the security module through the MCU module, and receives response data returned by the security module through the MCU module;
preferably, the sending of the instruction data to the security module by the fingerprint card through the MCU module is specifically: the fingerprint card sends the instruction data to the safety module through a contact interface of the MCU module;
in the present embodiment, the operation type of the verification instruction is of the first type; specifically, the response data obtained by executing the corresponding operation according to the operation type is specifically: the MCU module sends the PIN code stored in the MCU module to the security module through the contact interface, so that the security module verifies the PIN code, receives a verification result sent by the security module, and executes step 205;
in the embodiment, the operation type of the selected application instruction belongs to a first type; specifically, the response data obtained by executing the corresponding operation according to the operation type is specifically: the MCU module sends the application selection instruction to the security module through the contact interface, so that the security module selects the corresponding application according to the application identifier, receives an application selection response sent by the security module, and executes step 205;
optionally, in this embodiment, in step 204, executing a corresponding operation according to the operation type to obtain response data includes: and if the operation type is the second type, the fingerprint card executes corresponding operation according to the instruction data through the MCU module to obtain response data.
The first type is specifically an operation type of instruction data which needs to be operated and processed by the security module, and the second type is specifically an instruction data type which is only operated and processed by the MCU module.
Optionally, in this embodiment, the sending, by the fingerprint card through the MCU module, the instruction data to the security module specifically includes:
g1, the fingerprint card judges the communication protocol type of the security module through the MCU module, if the communication protocol type is the first type, the step G2 is executed, and if the communication protocol type is the second type, the step G5 is executed;
g2, the fingerprint card judges whether the instruction data is larger than the preset transmission quantity through the MCU module, if so, the step G3 is executed, and if not, the step G4 is executed;
g3, the fingerprint card sends the instruction data to the safety module through the contact interface of the MCU module in a blocking transmission mode;
g4, the fingerprint card sends the instruction data to the safety module through the contact interface of the MCU module in a one-time transmission mode;
and G5, the fingerprint card sends all instruction data to the security module through the contact interface of the MCU module.
Step 205, the MCU module in the fingerprint card sends the response data to the card reader through the NFC module, and the process returns to step 202.
Example 3
The application provides a working method of a fingerprint card based on embodiment 1, wherein the fingerprint card specifically comprises an MCU module, a security module, a carrier tape and an NFC module; the MCU module is connected to the NFC module, the carrier tape, and the security module, and is configured to receive an instruction and data sent by the card reading device through the NFC module or the carrier tape, and send the instruction and data to the security module.
As shown in fig. 3, a working method of a fingerprint card specifically includes:
301, performing power-on initialization on an MCU module in the fingerprint card, and sending a reset response to the card reading device through a carrier tape;
in this embodiment, before sending the reset response to the card reading device through the carrier tape, an implementable manner further includes: the method comprises the following steps that a security module in a fingerprint card is electrified and initialized, and an MCU module in the fingerprint card receives a reset response sent by the security module through a contact interface;
preferably, after the MCU module sends the reset acknowledgement to the card reader, the method further includes: the MCU module receives a communication rate configuration request sent by the card reading equipment through the carrier tape and returns a communication rate configuration response to the card reading equipment;
in this embodiment, another implementable manner further includes, after the step 301:
301-1, electrifying and initializing a security module in the fingerprint card;
301-2, the MCU module in the fingerprint card receives a reset response sent by the security module through the contact interface;
step 301-3, the MCU module in the fingerprint card judges the configuration mode according to the reset response, if the configuration mode is a negotiation mode, step 301-4 is executed, and if the configuration mode is a special mode, step 301-5 is executed;
301-4, the MCU module in the fingerprint card sends a communication rate configuration request to the security module through the contact interface, receives a communication rate configuration response returned by the security module through the contact interface, and executes step 301-5;
and 301-5, setting a transmission mode by the MCU module in the fingerprint card according to the communication protocol mode in the reset response.
Specifically, step 301-5 specifically includes: and judging a communication protocol mode by an MCU module in the fingerprint card, if the communication protocol mode is a first mode, setting the transmission mode to be transmitted according to characters, and if the communication protocol mode is a second mode, setting the transmission mode to be transmitted according to blocks.
Specifically, after receiving the reset response sent by the MCU module, the card reading device includes:
step P1, the card reading device judges the configuration mode according to the reset response, if the configuration mode is the negotiation mode, the step P2 is executed, and if the configuration mode is the special mode, the step P3 is executed;
step p2, the card reading equipment sends a communication rate configuration request to the fingerprint card, receives a communication rate configuration response returned by the fingerprint card, and executes step p 3;
and p3, the card reading device judges the communication protocol mode, if the communication protocol mode is the first mode, the data is transmitted according to the characters, and if the communication protocol mode is the second mode, the data is transmitted according to the blocks.
Step 302, the MCU module in the fingerprint card receives instruction data sent by the card reading device through the carrier tape, judges whether the fingerprint needs to be verified according to the instruction data, if so, executes step 303, otherwise, executes step 304;
optionally, judging whether the fingerprint needs to be verified according to the instruction data specifically includes: and judging whether the instruction data is an application selection instruction or not by the MCU module in the fingerprint card, if so, verifying the fingerprint, and otherwise, not verifying the fingerprint.
Optionally, judging whether the fingerprint needs to be verified according to the instruction data specifically includes: and judging whether the instruction data is a verification instruction or not by the MCU module in the fingerprint card, if so, verifying the fingerprint, otherwise, not verifying the fingerprint.
Step 303, the fingerprint card acquires fingerprint information input by a user through the MCU module, judges whether the acquired fingerprint information is the same as the stored fingerprint information, if so, executes step 304, otherwise, generates response data including fingerprint verification failure data, sends the response data to the card reading device through the carrier tape, and returns to step 302;
step 304, the fingerprint card determines the operation type of the instruction data through the MCU module, executes corresponding operation according to the operation type to obtain response data, and executes step 305;
optionally, in this embodiment, in step 304, executing a corresponding operation according to the operation type to obtain response data includes: if the operation type is the first type, the fingerprint card sends the instruction data to the security module through the MCU module, and receives response data returned by the security module through the MCU module;
preferably, the sending of the instruction data to the security module by the fingerprint card through the MCU module is specifically: the fingerprint card sends the instruction data to the safety module through a contact interface of the MCU module;
in the present embodiment, the operation type of the verification instruction is of the first type; specifically, the response data obtained by executing the corresponding operation according to the operation type is specifically: the MCU module sends the PIN code stored in the MCU module to the security module through the contact interface, so that the security module verifies the PIN code, receives a verification result sent by the security module, and executes step 305;
in the embodiment, the operation type of the selected application instruction belongs to a first type; specifically, the response data obtained by executing the corresponding operation according to the operation type is specifically: the MCU module sends an application selection instruction to the security module through the contact interface, so that the security module selects a corresponding application according to the application identifier, receives an application selection response sent by the security module, and executes step 305;
optionally, in this embodiment, in step 304, executing a corresponding operation according to the operation type to obtain response data includes: and if the operation type is the second type, the fingerprint card executes corresponding operation according to the instruction data through the MCU module to obtain response data.
The first type is specifically an operation type of instruction data which needs to be operated and processed by the security module, and the second type is specifically an instruction data type which is only operated and processed by the MCU module.
Optionally, in this embodiment, the sending, by the fingerprint card through the MCU module, the instruction data to the security module specifically includes:
step X1, the fingerprint card judges the communication protocol mode of the security module through the MCU module, if the communication protocol mode is the first mode, the step X2 is executed, and if the communication protocol mode is the second mode, the step X5 is executed;
step X2, the fingerprint card judges whether the instruction data is larger than the preset transmission quantity through the MCU module, if so, the step X3 is executed, and if not, the step X4 is executed;
step X3, the fingerprint card sends the instruction data to the safety module through the contact interface of the MCU module in a blocking transmission mode;
step X4, the fingerprint card sends the instruction data to the security module through the contact interface of the MCU module in a one-time transmission mode;
and step X5, the fingerprint card sends all instruction data to the security module through the contact interface of the MCU module.
And 305, the MCU module in the fingerprint card sends the response data to the card reading device through the carrier tape, and the step 302 is returned.
Example 4
Based on the above technical scheme of the working method of the fingerprint card that this application provided, this application correspondingly provides a fingerprint card, and this fingerprint card includes the security module, and a fingerprint card of this application still includes:
the MCU module is used for power-on initialization; the fingerprint verification device is also used for receiving instruction data sent by the card reading device through the carrier band or the NFC module and judging whether the fingerprint needs to be verified according to the instruction data; the fingerprint acquisition module is also used for acquiring fingerprint information input by a user and comparing the acquired fingerprint information with the stored fingerprint information; the data processing device is also used for determining the operation type of the instruction data and executing corresponding operation according to the operation type to obtain response data; the fingerprint verification device is also used for generating response data comprising fingerprint verification failure data when the fingerprint information comparison fails; the card reader is also used for sending response data to the card reader through the carrier band or the NFC module;
the carrier band is used for receiving the instruction data sent by the card reading equipment and sending response data to the card reading equipment;
and the NFC module is used for receiving the instruction data sent by the card reading equipment and sending response data to the card reading equipment.
In this embodiment, optionally, the MCU module is specifically configured to determine whether the instruction data is an application-selecting instruction; and the method is particularly used for judging whether the instruction data is a verification instruction.
Optionally, the MCU module is specifically configured to send the instruction data to the security module, and receive response data returned by the security module.
Specifically, the MCU module is specifically configured to send the instruction data to the security module through a contact interface of the MCU module when the instruction data is sent to the security module.
Optionally, in this embodiment, the MCU module is further configured to return a reset response to the card reading device through the carrier tape, receive a communication rate configuration request sent by the card reading device through the carrier tape, and return a communication rate configuration response to the card reading device through the carrier tape.
Optionally, in this embodiment, the MCU module is further configured to determine a configuration mode according to the reset response, send a communication rate configuration request to the security module through the contact interface, receive a communication rate configuration response returned by the security module through the contact interface, and set a transmission mode according to a communication protocol mode in the reset response.
Optionally, the security module is configured to power on initialization and send a reset response to the MCU module.
Optionally, the NFC module is configured to power up, execute an initialization phase operation, and trigger the MCU module.
Optionally, the MCU module is further configured to send a request for obtaining a reset response to the security module through the contact interface, and receive a reset response returned by the security module through the contact interface; judging a configuration mode according to the reset response; the contact interface is used for sending a communication rate configuration request to the security module and receiving a communication rate configuration response returned by the security module; and the method is also used for setting the transmission mode according to the communication protocol mode in the reset response.
Optionally, the MCU module is further configured to receive a selection response request sent by the card reading device through the NFC module; the NFC module is also used for sending a request for acquiring a reset response to the security module through the contact interface, receiving the reset response returned by the security module through the contact interface, organizing selective response data according to the reset response, and sending the selective response data to the card reading equipment through the NFC module; the NFC module is used for receiving a communication rate configuration request sent by the card reading equipment, executing communication rate configuration operation and sending communication rate configuration parameters to the card reading equipment; and the communication module is also used for sending a communication speed setting request to the security module through the contact interface, receiving and storing the communication speed configuration parameters sent by the security module through the contact interface.
The application provides an electronic device, including: a memory for storing computer readable instructions; and a processor for executing the computer readable instructions, such that the computer readable instructions, when executed by the processor, implement operations of a fingerprint card working method.
A computer-readable storage medium is provided for storing computer-readable instructions which, when executed by a computer, cause the computer to perform operations of a fingerprint card working method.
The computer-readable storage medium provided in the present application is applicable to any embodiment of the above fingerprint card working method, and is not described herein again.
The fingerprint card, the working method, the electronic device and the computer-readable storage medium provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. A working method of a fingerprint card comprises a security module, and is characterized in that the fingerprint card further comprises an MCU module, a carrier tape and an NFC module, and the method comprises the following steps:
step S1, electrifying and initializing an MCU module in the fingerprint card;
step S2, the MCU module in the fingerprint card receives instruction data sent by a card reading device, whether the fingerprint needs to be verified is judged according to the instruction data, if so, the step S3 is executed, otherwise, the step S4 is executed;
step S3, the fingerprint card acquires the fingerprint information input by the user through the MCU module, compares the acquired fingerprint information with the fingerprint information stored in the MCU module, if the comparison is passed, the step S4 is executed, otherwise, response data including fingerprint verification failure data is generated, and the step S5 is executed;
step S4, the fingerprint card determines the operation type of the instruction data through the MCU module, executes operation according to the operation type to obtain response data, and executes step S5;
step S5, the fingerprint card sends response data to the card reading device, and the step S2 is returned;
the receiving of the instruction data sent by the card reading device by the MCU module in the fingerprint card is specifically as follows: the MCU module in the fingerprint card receives instruction data sent by card reading equipment through the carrier tape; the sending of the response data by the fingerprint card to the card reading device specifically includes: the fingerprint card sends response data to the card reading equipment through the carrier tape;
or, the receiving, by the MCU module in the fingerprint card, the instruction data sent by the card reading device specifically includes: the MCU module in the fingerprint card receives instruction data sent by card reading equipment through the NFC module; the sending of the response data by the fingerprint card to the card reading device specifically includes: the fingerprint card sends response data to the card reading equipment through the NFC module;
the step of judging whether the fingerprint needs to be verified according to the instruction data specifically comprises the following steps: the MCU module in the fingerprint card judges whether the instruction data is an application selection instruction, if so, the fingerprint needs to be verified, otherwise, the fingerprint does not need to be verified; or
And the MCU module in the fingerprint card judges whether the instruction data is a verification instruction, if so, the fingerprint needs to be verified, otherwise, the fingerprint does not need to be verified.
2. The method according to claim 1, wherein in step S4, the performing the operation according to the operation type to obtain the response data includes: if the operation type is the first type, the fingerprint card sends instruction data to the security module through the MCU module, and receives response data returned by the security module through the MCU module.
3. The method according to claim 2, wherein the sending of the instruction data by the fingerprint card to the security module via the MCU module is specifically: and the fingerprint card sends instruction data to the safety module through a contact interface of the MCU module.
4. The method according to claim 1, wherein in step S4, the performing the operation according to the operation type to obtain the response data includes: and if the operation type is the second type, the fingerprint card executes operation according to the instruction data through the MCU module to obtain response data.
5. The method according to claim 1, wherein the step S2 is preceded by: and the MCU module in the fingerprint card returns a reset response to the card reading equipment through the carrier band, receives a communication rate configuration request sent by the card reading equipment through the carrier band, and returns a communication rate configuration response to the card reading equipment through the carrier band.
6. The method according to claim 5, wherein before the MCU module in the fingerprint card returns a reset response to the card reading device via the carrier tape, the method further comprises: the security module in the fingerprint card is electrified and initialized, and the MCU module in the fingerprint card receives the reset response sent by the security module through the contact interface.
7. The method according to claim 6, wherein after the MCU module in the fingerprint card receives the answer to reset sent by the security module through the contact interface, the method further comprises:
step A1, the MCU module in the fingerprint card judges the configuration mode according to the reset response, if the configuration mode is the negotiation mode, the step A2 is executed, and if the configuration mode is the special mode, the step A3 is executed;
step A2, the MCU module in the fingerprint card sends a communication rate configuration request to the security module through a contact interface, receives a communication rate configuration response returned by the security module through the contact interface, and executes step A3;
and step A3, the MCU module in the fingerprint card sets a transmission mode according to the communication protocol mode in the reset response.
8. The method according to claim 1, wherein the step S2 is preceded by: the NFC module in the fingerprint card is electrified and initialized, initialization stage operation is executed, and the MCU module is triggered to execute the step S2;
the executing the initialization stage operation specifically includes: receiving a selective response request sent by the card reading equipment, acquiring a selective response, and sending the selective response to the card reading equipment; and receiving a communication rate configuration request sent by the card reading equipment, executing configuration operation, and returning a communication rate configuration response.
9. The method according to claim 8, wherein said obtaining a selection response specifically comprises: the NFC module obtains a self-stored selection response, or the NFC module sends a selection response request to the MCU module and receives the selection response returned by the MCU module.
10. The method according to claim 8, wherein the performing configuration operations specifically comprises: the NFC module carries out configuration according to communication rate configuration parameters stored in the NFC module, or the NFC module sends a communication rate configuration request to the MCU module and receives a communication rate configuration response returned by the MCU module.
11. The method according to claim 8, wherein the step S2 is preceded by:
step B1, the security module in the fingerprint card is powered on and initialized;
step B2, the MCU module in the fingerprint card sends a request for acquiring a reset response to the security module through the contact interface, and receives the reset response returned by the security module through the contact interface;
step B3, the MCU module in the fingerprint card judges the configuration mode according to the reset response, if the configuration mode is the negotiation mode, the step B4 is executed, if the configuration mode is the special mode, the step B5 is executed;
step B4, the MCU module in the fingerprint card sends a communication rate configuration request to the security module through a contact interface, receives a communication rate configuration response returned by the security module through the contact interface, and executes step B5;
and step B5, the MCU module in the fingerprint card sets a transmission mode according to the communication protocol mode in the reset response, and step S2 is executed.
12. The method according to claim 1, wherein the step S2 is preceded by:
step C1, the NFC module in the fingerprint card is electrified and initialized, and initialization stage operation is executed;
step C2, the MCU module in the fingerprint card receives a selection response request sent by the card reading device through the NFC module;
step C3, the security module in the fingerprint card is powered on and initialized;
step C4, the MCU module in the fingerprint card sends a request for obtaining a reset response to the security module through a contact interface, receives the reset response returned by the security module through the contact interface, organizes response data of a selection response according to the reset response, and sends the response data of the selection response to the card reading device through the NFC module;
step C5, the MCU module in the fingerprint card receives a communication rate configuration request sent by the card reading device through the NFC module, executes a communication rate configuration operation, and sends a communication rate configuration parameter to the card reading device through the NFC module;
step C6, the MCU module in the fingerprint card sends a communication rate setting request to the security module through the contact interface, receives and stores the communication rate configuration parameters sent by the security module through the contact interface, and executes step S2.
13. A fingerprint card comprises a security module, and is characterized by further comprising an MCU module, a carrier band and an NFC module;
the MCU module is used for power-on initialization; the fingerprint verification device is also used for receiving instruction data sent by card reading equipment through the carrier tape or the NFC module and judging whether a fingerprint needs to be verified according to the instruction data; the fingerprint acquisition module is also used for acquiring fingerprint information input by a user and comparing the acquired fingerprint information with the stored fingerprint information; the data processing device is also used for determining the operation type of the instruction data and executing corresponding operation according to the operation type to obtain response data; the fingerprint verification device is also used for generating response data comprising fingerprint verification failure data when the fingerprint information comparison fails; the NFC module is also used for sending response data to the card reading equipment through the carrier tape or the NFC module;
the carrier band is used for receiving the instruction data sent by the card reading equipment and sending response data to the card reading equipment;
the NFC module is used for receiving instruction data sent by the card reading equipment and sending response data to the card reading equipment;
the step of judging whether the fingerprint needs to be verified according to the instruction data specifically comprises the following steps: the MCU module in the fingerprint card judges whether the instruction data is an application selection instruction, if so, the fingerprint needs to be verified, otherwise, the fingerprint does not need to be verified; or
And the MCU module in the fingerprint card judges whether the instruction data is a verification instruction, if so, the fingerprint needs to be verified, otherwise, the fingerprint does not need to be verified.
14. An electronic device, characterized in that the device comprises: a memory for storing computer readable instructions; and a processor for executing the computer readable instructions such that the computer readable instructions, when executed by the processor, implement the method of any one of claims 1 to 12.
15. A computer-readable storage medium storing computer-readable instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 12.
CN202110951752.6A 2021-08-19 2021-08-19 Fingerprint card and working method thereof, electronic equipment and computer readable storage medium Active CN113408500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110951752.6A CN113408500B (en) 2021-08-19 2021-08-19 Fingerprint card and working method thereof, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110951752.6A CN113408500B (en) 2021-08-19 2021-08-19 Fingerprint card and working method thereof, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113408500A CN113408500A (en) 2021-09-17
CN113408500B true CN113408500B (en) 2021-11-26

Family

ID=77688734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110951752.6A Active CN113408500B (en) 2021-08-19 2021-08-19 Fingerprint card and working method thereof, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113408500B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106447331A (en) * 2016-03-16 2017-02-22 王乐思 Fingerprint payment card and system and payment method
WO2018112526A1 (en) * 2016-12-19 2018-06-28 Xard Group Pty Ltd Digital transaction apparatus, system, and method with a virtual companion card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246838A (en) * 2013-04-27 2013-08-14 深圳市亚略特生物识别科技有限公司 External device of mobile terminal
US9275389B1 (en) * 2014-11-26 2016-03-01 Paypal, Inc. Modular device payment system
CN109309568A (en) * 2018-09-07 2019-02-05 江苏恒宝智能系统技术有限公司 A kind of fingerprint authorization method and system
CN112257474B (en) * 2020-12-17 2021-03-16 飞天诚信科技股份有限公司 Fingerprint card equipment and working method and system thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106447331A (en) * 2016-03-16 2017-02-22 王乐思 Fingerprint payment card and system and payment method
WO2018112526A1 (en) * 2016-12-19 2018-06-28 Xard Group Pty Ltd Digital transaction apparatus, system, and method with a virtual companion card

Also Published As

Publication number Publication date
CN113408500A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN105704332B (en) Mobile payment method and device
CN105245346B (en) A kind of identity identifying method and user terminal
US9967798B2 (en) NFC routing method
JP2011118837A (en) Information processing device, information processing method and program
US10938806B2 (en) Communication method and device
WO2022252561A1 (en) Card swiping method, card controller, electronic device and storage medium
JP2014112369A (en) Electronic assembly comprising disabling module
CN108288008B (en) Card activation method and device
EP2945298B1 (en) Communication method and apparatus for nfc device, and nfc device
CN111160508B (en) Dual-chip safe SIM card
US10085268B2 (en) Communications device and communications system
CN113408500B (en) Fingerprint card and working method thereof, electronic equipment and computer readable storage medium
CN105025548B (en) A kind of the connection control method and device of SIM card
WO2019155792A1 (en) Information processing device, information processing method, and program
WO2018161224A1 (en) Data processing method and related device
CN110740043B (en) Intelligent key device and verification method thereof
KR100959562B1 (en) Method for communication RFID reader and tag
JP6092342B2 (en) Non-contact portable electronic device and method for issuing non-contact portable electronic device
CN111563247A (en) Method and device for logging in system by intelligent key equipment
JP5943036B2 (en) Information processing apparatus, information processing method, and program
CN110971410A (en) User information verification method, intelligent terminal and computer readable storage medium
CN110740042B (en) Intelligent key device and verification method thereof
JP6009854B2 (en) IC card, portable electronic device, and IC card control program
JPWO2017038821A1 (en) Information processing apparatus, information processing method, program, and information processing system
JP5875772B2 (en) Portable electronic device, control method for portable electronic device, and processing system for portable electronic device

Legal Events

Date Code Title Description
PB01 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