Activation device and method of identity card reader
By using the ID line of the USB connection port on the ID card reader for single-line communication and connecting information injection tooling, the problem of difficulty in injecting authentication information in low-cost ID card reader is solved, the activation of the secure decoding module is realized, and the device user experience and security is improved.
Patent Information
- Application Number
- CN202411674920.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-04-25
AI Technical Summary
In the design of low-cost ID card reader, only one USB connection port is retained, and communication channels cannot be provided for the hardware media in the device to the upper computer, resulting in the inability to effectively inject authentication information, affecting the activation of the secure decoding module.
Single-wire communication is carried out through the ID line of the USB connection port of the ID card reader, the microcontroller is connected internally, and the external connection information is injected into the tooling to realize the injection of authentication information, thereby activating the secure decoding module.
It realizes communication between the microcontroller and the information sending module in the ID card reader, successfully injects authentication information, activates the security decoding module, and improves the user experience and security of the device.
Smart Images

Figure CN119886169A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an activation device and method for an identity card reader. Background Art
[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.
[0003] ID card readers are very common electronic devices, widely used in banks, hotels, hospitals and other places. In order to achieve safe use and easy traceability, the new generation of ID card readers have built-in new security decoding modules, which need to be activated before use to correctly parse the ID card information.
[0004] The activation of the security decoding module is the process of receiving and verifying the authentication information. There are two activation methods. One is that the authentication information is encapsulated in the customer software when the device leaves the factory, and the customer performs the activation action before using the device; the other is that before the device leaves the factory, the device manufacturer embeds the authentication information in the hardware medium inside the device, and the activation action is completed automatically each time the device is started, which is imperceptible to the customer. In order to improve the customer's experience, the ID card reader is designed according to the second activation method.
[0005] The authentication information needs to be built into the hardware medium, which is generally a microcontroller with communication capabilities. In the design of a low-cost ID card reader, only one USB port is reserved to provide the ID card reading function. The USB signal of this port is connected to the security decoding module, which cannot provide a communication channel between the hardware medium in the device and the host computer. Summary of the invention
[0006] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides an activation device and method for an ID card reader, which uses the ID line of the USB connection port on the ID card reader for single-line communication. This signal line is internally connected to the microcontroller of the ID card reader and externally connected to the information injection tooling to realize authentication information injection, thereby realizing the activation of the security decoding module.
[0007] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:
[0008] In a first aspect, the present invention provides an activation device for an ID card reader, comprising an information sending module, an information injection tooling, and an ID card reader connected in sequence;
[0009] The information sending module is used to transmit the authentication information to the information injection tooling;
[0010] The information injection tool is used to communicate with the ID card reader and transmit the received authentication information to the ID card reader;
[0011] The ID card reader is used to receive the authentication information and activate the security decoding module based on the authentication information; the ID card reader is connected to the information injection tooling via the ID pin of the second USB interface.
[0012] According to a further technical solution, the information injection tooling comprises a first USB interface, a signal processing unit and a single-line interface which are connected in sequence.
[0013] According to a further technical solution, the information injection tool is connected to the information sending module via a first USB interface.
[0014] According to a further technical solution, the information injection tool is connected to the ID card reader via a single-line interface.
[0015] A further technical solution is that the ID card reader includes a second USB interface, a single-chip microcomputer, a security decoding module and a radio frequency module, the second USB interface is connected to the single-chip microcomputer and the security decoding module respectively, the single-chip microcomputer is bidirectionally connected to the security decoding module, and the security decoding module has bidirectional wired communication with the radio frequency module.
[0016] According to a further technical solution, the second USB interface is connected to the single-chip microcomputer via an ID line.
[0017] According to a further technical solution, the single chip microcomputer is used to detect the level state of the ID line, receive the authentication information transmitted by the information injection tooling, and activate the security decoding module based on the authentication information.
[0018] In a second aspect, the present invention provides an activation method for an ID card reader, comprising:
[0019] The information injection tool is connected to the information sending module and the ID card reader respectively;
[0020] After the information injection tool is connected to the ID card reader, the ID line of the second USB interface is pulled high; the ID card reader detects the level state of the ID line, and if the ID line is pulled high, it waits to communicate with the information injection tool;
[0021] The information injection tool shakes hands with the ID card reader to complete the communication;
[0022] The information sending module transmits the authentication information to the information injection tooling, and the information injection tooling transmits the authentication information to the ID card reader;
[0023] The ID card reader activates the security decoding module based on the authentication information.
[0024] According to a further technical solution, the signal processing unit in the information injection tool receives the authentication information through the first USB interface, and transmits the authentication information to the ID card reader through the single-line interface.
[0025] According to a further technical solution, when the identity reader is in use, the internal single chip microcomputer detects the level of the ID line. If the level is low, the stored authentication information is retrieved and the security decoding module is activated based on the authentication information.
[0026] One or more of the above technical solutions have the following beneficial effects:
[0027] The present invention uses the ID line of the USB connection port of the ID card reader for single-line communication. This signal line is internally connected to the single-chip microcomputer of the ID card reader and externally connected to the information injection tooling, providing a communication channel between the single-chip microcomputer in the ID card reader and the information sending module, realizing the injection of authentication information, and then realizing the activation of the security decoding module.
[0028] The present invention designs an information injection tooling for injecting authentication information, provides a communication channel between the single chip microcomputer in the ID card reader and the information sending module, and realizes the transmission of authentication information. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0030] Figure 1 It is a diagram of an information injection tooling module in an activation device according to an embodiment of the present invention;
[0031] Figure 2 It is a diagram of an ID card reader module in an activation device according to an embodiment of the present invention;
[0032] Figure 3 It is a flow chart of the ID card reader in the activation method of the embodiment of the present invention. DETAILED DESCRIPTION
[0033] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0034] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0035] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0036] Embodiment 1
[0037] like Figure 1 As shown, this embodiment discloses an activation device for an ID card reader, comprising an information sending module, an information injection tooling and an ID card reader connected in sequence;
[0038] The information sending module is used to transmit the authentication information to the information injection tooling;
[0039] The information injection tool is used to communicate with the ID card reader and transmit the received authentication information to the ID card reader;
[0040] The ID card reader is used to receive the authentication information and activate the security decoding module based on the authentication information; the ID card reader is connected to the information injection tooling via the ID pin of the second USB interface.
[0041] In this embodiment, the information sending module may be a personal computer PC, such as a desktop computer, a notebook computer, and a tablet computer.
[0042] In this embodiment, the information injection tool is specially designed for authentication information injection and is not universal. The information injection tool includes a first USB interface, a signal processing unit, and a single-line interface connected in sequence. The information injection tool is connected to the information sending module through the first USB interface and connected to the ID card reader through the single-line interface.
[0043] In some implementations, the signal processing unit may be implemented using a GD32 series single-chip microcomputer.
[0044] The process in the information injection tooling is as follows: the information sending module (computer) transmits the authentication information to the signal processing unit of the information injection tooling through the first USB interface, and the signal processing unit forwards the authentication information to the ID card reader through the single-line interface. The single-chip microcomputer in the ID card reader verifies the authentication information after receiving it, and after successful verification, sends the response information to the information injection tooling through the single-line interface. After the information injection tooling receives the response information, it forwards it to the information sending module (computer) through the USB interface. In other words, the information injection tooling and the ID card reader communicate in a single-line manner, realizing two-way communication between the two, that is, half-duplex communication.
[0045] The authentication information is injected into the ID card reader through the ID line of the second USB interface, and the communication method adopted is single-line communication. Single-line communication is different from common computer interfaces such as USB. It cannot communicate directly with the computer, so signal transfer is required. The function of the information injection tooling is to complete the conversion of USB signals and single-line communication signals.
[0046] In this embodiment, the ID card reader includes a second USB interface, a single chip microcomputer, a security decoding module and a radio frequency module. The second USB interface is connected to the single chip microcomputer and the security decoding module respectively, the single chip microcomputer is bidirectionally connected to the security decoding module, and the security decoding module is in bidirectional wired communication with the radio frequency module.
[0047] The ID card reader is connected to the single-line interface of the information injection tooling through the second USB interface. The second USB interface includes an ID pin, a GND pin and a VBUS pin, wherein the GND pin and VBUS are used for power supply, and the ID pin is used for communication. Inside the ID card reader, the second USB interface is connected to the single-chip microcomputer through the ID line. The single-chip microcomputer is used to detect the level state of the ID line, receive the authentication information transmitted by the information injection tooling, verify the authentication information, and send the response information to the information injection tooling through the single-line interface after the verification is successful, and activate the security decoding module based on the authentication information.
[0048] Inside the ID card reader, the second USB interface is also connected to the security decoding module, and the two communicate via USB. When the ID card reader is in use, the security decoding module communicates with the service terminal (generally referring to the host running the application, in this embodiment, the computer on which the user reads the ID card information) through the second USB interface, and uses the RFID communication interface to connect the antenna matching circuit to communicate with the ID card to achieve the identification of the ID card. The security decoding module is a security module issued by the Ministry of Public Security for reading and decoding ID card information. For national security considerations, the built-in information of the resident ID card, including text information, photo information, and fingerprint information, is encrypted and stored. The corresponding plain text information must be read using the security decoding module. Its specific structure and working principle are not disclosed and belong to the existing module.
[0049] Embodiment 2
[0050] This embodiment discloses a method for activating an ID card reader, including:
[0051] The information injection tool is connected to the information sending module and the ID card reader respectively;
[0052] After the information injection tool is connected to the ID card reader, the ID line of the second USB interface is pulled high; the ID card reader detects the level state of the ID line, and if the ID line is pulled high, it waits to communicate with the information injection tool;
[0053] The information injection tool shakes hands with the ID card reader to complete the communication;
[0054] The information sending module transmits the authentication information to the information injection tooling, and the information injection tooling transmits the authentication information to the ID card reader;
[0055] The ID card reader activates the security decoding module based on the authentication information. Specifically, the authentication information is packaged according to the communication protocol format it supports and sent to the security decoding module through the serial port. If the authentication information is accurate, the activation is successful, and the security decoding module returns a successful activation response.
[0056] In this embodiment, the activation method of the security decoding module includes activation methods in the factory state and in the use state:
[0057] 1. Factory status
[0058] 1. Use the information injection tooling to connect the USB interface of the ID card reader (i.e. the second USB interface), and the connection pins are the ID pin, GND pin and VBUS pin.
[0059] 2. Connect the information injection tool to the information sending module (i.e., PC). The communication method between the information sending module and the information injection tool is not limited, and the authentication information can be sent to the information injection tool.
[0060] 3. After the information injection tooling is connected to the ID card reader, the ID line of the second USB interface is pulled high; the ID card reader detects the level state of the ID line, and if the ID line is pulled high, it waits to communicate with the information injection tooling.
[0061] 4. The information injection tool shakes hands with the ID card reader to complete the communication;
[0062] The handshake protocol is a custom protocol, which is set by the existing method to ensure the accuracy of the data transmission process. For example: the communication mode is half-duplex communication mode, a high level of 100ms on the bus is specified as idle, a low bus level of 10ms is specified as a communication start signal, the signal transmission rate is specified to be 10kbps, a high level on the bus indicates signal 1, a low level indicates signal 0, and a parity bit follows each byte transmitted, etc. This embodiment is not specifically limited.
[0063] 5. The information sending module transmits the authentication information to the information injection tool, and the information injection tool transmits the authentication information to the ID card reader;
[0064] 6. After the ID card reader obtains the authentication information, it is saved to the single-chip microcomputer, and the single-chip microcomputer activates the security decoding module based on the authentication information. The ID card reader includes the following judgment process: detect the level state of the ID line. If the ID line is pulled high, the authentication information is injected through the ID line; if the ID line is not pulled high, detect whether the authentication information has been injected. If so, activate the security decoding module based on the authentication information.
[0065] 2. In use
[0066] 1. Use a USB cable to connect the ID card reader to the signal transmission module through its USB interface (i.e., the second USB interface), and the connection pins are D+ pin, D- pin, GND pin, and VBUS pin. Among them, the GND pin and VBUS pin are used for power supply, and the D+ pin and D- pin are used for communication.
[0067] 2. The microcontroller in the ID card reader detects the level state of the ID line, which is low.
[0068] 3. The MCU takes out the saved authentication information and activates the security decoding module.
[0069] It should be noted that the security decoding module needs to be activated every time it is powered on. In the factory state, the microcontroller in the ID card reader does not save the authentication information, so it is necessary to first obtain the authentication information through the injection tooling, and then activate the security decoding module based on the authentication information; in the factory-used state, the microcontroller in the ID card reader has saved the authentication information, so the security decoding module can be directly activated.
[0070] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0071] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. An activation device for an ID card reader, characterized in that: It includes an information sending module, an information injection tooling and an ID card reader which are connected in sequence; The information sending module is used to transmit the authentication information to the information injection tooling; The information injection tool is used to communicate with the ID card reader and transmit the received authentication information to the ID card reader; The ID card reader is used to receive the authentication information and activate the security decoding module based on the authentication information; the ID card reader is connected to the information injection tooling via the ID pin of the second USB interface.
2. An activation device for an ID card reader as claimed in claim 1, characterized in that: The information injection tooling comprises a first USB interface, a signal processing unit and a single-line interface which are connected in sequence.
3. An activation device for an ID card reader as claimed in claim 2, characterized in that: The information injection tool is connected to the information sending module via the first USB interface.
4. An activation device for an ID card reader as claimed in claim 2, characterized in that: The information injection tool is connected to the ID card reader via a single-line interface.
5. The activation device for an ID card reader as claimed in claim 1, characterized in that: The ID card reader includes a second USB interface, a single-chip microcomputer, a security decoding module and a radio frequency module. The second USB interface is connected to the single-chip microcomputer and the security decoding module respectively. The single-chip microcomputer is bidirectionally connected to the security decoding module. The security decoding module and the radio frequency module have bidirectional wired communication.
6. An activation device for an ID card reader as claimed in claim 5, characterized in that: The second USB interface is connected to the single chip microcomputer via an ID line.
7. An activation device for an ID card reader as claimed in claim 6, characterized in that: The single chip microcomputer is used to detect the level state of the ID line, receive the authentication information transmitted by the information injection tooling, and activate the security decoding module based on the authentication information.
8. A method for activating an ID card reader, characterized in that: include: The information injection tool is connected to the information sending module and the ID card reader respectively; After the information injection tool is connected to the ID card reader, the ID line of the second USB interface is pulled high; the ID card reader detects the level state of the ID line, and if the ID line is pulled high, it waits to communicate with the information injection tool; The information injection tool shakes hands with the ID card reader to complete the communication; The information sending module transmits the authentication information to the information injection tooling, and the information injection tooling transmits the authentication information to the ID card reader; The ID card reader activates the security decoding module based on the authentication information.
9. A method for activating an ID card reader as claimed in claim 8, characterized in that: The signal processing unit in the information injection tool receives the authentication information through the first USB interface, and transmits the authentication information to the ID card reader through the single-line interface.
10. The method for activating an ID card reader according to claim 8, characterized in that: When the identity reader is in use, the internal single-chip microcomputer detects the level state of the ID line. If the level is low, the saved authentication information is retrieved and the security decoding module is activated based on the authentication information.