CN102902360A - Circuit system for reading second generation identity card information, and processing method for same - Google Patents
Circuit system for reading second generation identity card information, and processing method for same Download PDFInfo
- Publication number
- CN102902360A CN102902360A CN2012103700590A CN201210370059A CN102902360A CN 102902360 A CN102902360 A CN 102902360A CN 2012103700590 A CN2012103700590 A CN 2012103700590A CN 201210370059 A CN201210370059 A CN 201210370059A CN 102902360 A CN102902360 A CN 102902360A
- Authority
- CN
- China
- Prior art keywords
- transistor
- connects
- keyboard
- identity card
- contact resistance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention relates to the technical field of bank communication systems, and particularly discloses a circuit system for reading second generation identity card information, and a processing method for the circuit system. The circuit system for reading second generation identity card information is characterized in that the circuit is connected as follows, a 2# CLK (Clock) pin of a PC (Personal Computer) side interface is divided into two paths, one path is connected with one end of a resistor R1 and the other path is connected with the collector of a transistor T1, the other end of the resistor R1 is connected with a power supply, the emitter of the transistor T1 is connected with one end of a resistor R2, the other end of the resistor R2 is connected with the power supply, and the base of the transistor T1 is connected with one end of a resistor R3. Compared with the prior art, with the adoption of the keyboard control circuit and processing software, the process of automatically inputting the identity card information by the keyboard can be simulated. A shortcut key for reading the second generation identity card in the computer is captured for reading the information of the second generation identity card, and then, the read data is transmitted to the computer according to the keyboard signals, and the communication between other keyboards and the computer runs normally. The circuit system is rapid and convenient, and greatly improves the working efficiency.
Description
Technical field
The present invention relates to bank's communication system technical field, specifically a kind of Circuits System and disposal route thereof that reads second generation identity card information.
Background technology
Behind distribution first generation I.D., typing citizen's ID (identity number) card information is all wanted in many application scenarios, comprises name, address, identification card number etc.China changed second generation smart identity cards since 2004, adopt non-contact IC card technology, can utilize the information in the direct reading identity card of second-generation ID card reader, fast and safely.But first generation I.D. is not cancellation also, and considerable application software still keeps from the function of keyboard typing ID (identity number) card information, when using China second-generation identity card, if also want manual input message, will be very inconvenient.
Summary of the invention
The present invention discloses a kind of keyboard control circuit interface and disposal route thereof for overcoming the deficiencies in the prior art, by this keyboard control circuit, will be converted by the Serial Port Information that the second generation identity card read module is uploaded to the ps/2 interface message.Utilize this keyboard control circuit and process software, can automatically input ID (identity number) card information by simulating keyboard.
For achieving the above object, design a kind of Circuits System that reads second generation identity card information, it is characterized in that: circuit connects as follows, No. 2 CLK pins of PC end interface divide two-way, the end of one road contact resistance R1, and another road connects the collector of transistor T 1, another termination power of resistance R 1, the end of the emitter contact resistance R2 of transistor T 1, another termination power of resistance R 2, the end of the base stage contact resistance R3 of transistor T 1; The end of the emitter contact resistance R1 of transistor T 2, the collector of transistor T 2 divides two-way, the end of one road contact resistance R2, another road connects the CLK pin of keyboard, the end of the base stage contact resistance R4 of transistor T 2, the other end of resistance R 4 connects the collector of transistor T 5 jointly together with the other end of R3, and the emitter of transistor T 5 connects power supply, the end of the base stage contact resistance R9 of transistor T 5, the other end of resistance R 9 connects the P1.4 port of the inner MCU chip of single-chip microcomputer; The DATA pin of PC end interface divides two-way, the end of one road contact resistance R5, another road connects the collector of transistor T 3, another termination power of resistance R 5, the end of the emitter contact resistance R6 of transistor T 3, another termination power of resistance R 6, the end of the base stage contact resistance R7 of transistor T 3, the other end of resistance R 7 divides two-way, and one the tunnel connects the collector of transistor T 5, the end of another road contact resistance R8, the other end of resistance R 8 connects the base stage of transistor T 4, the end of transistor T 4 emitter contact resistance R5, and the collector of transistor T 4 divides two-way, the end of one road contact resistance R6, another road connects the DATA pin of keyboard; The BEEP pin of second-generation identity card reader connects the P3.6 port of the inner MCU chip of single-chip microcomputer, the S-TX pin of second-generation identity card reader connects the P3.0 port of the inner MCU chip of single-chip microcomputer, the S-RX pin of second-generation identity card reader connects the P3.1 port of the inner MCU chip of single-chip microcomputer, the RST port of the inner MCU chip of single-chip microcomputer divides two-way, the end of one road contact resistance R10, another road connects the negative pole of capacitor C 3, and the positive pole of capacitor C 3 connects power supply, the other end ground connection of resistance R 10; The P1.5 port of the inner MCU chip of single-chip microcomputer connects the CLK pin of PC, and the P3.3 port of the inner MCU chip of single-chip microcomputer connects the DATA pin of PC; The P1.6 port of the inner MCU chip of single-chip microcomputer connects the DATA pin of keyboard, and the P3.2 port of the inner MCU chip of single-chip microcomputer connects the CLK pin of keyboard.
The inner MCU chip of described single-chip microcomputer is provided with software model.
The software treatment scheme is as follows,
(1) power-up initializing is communicated with PC with keyboard;
(2) keyboard data is monitored and read to PC;
(3) second-generation identity card reader judges whether to read the second-generation identification card information hot key;
(4) be the information that then reads China second-generation identity card, and be converted to 16 system data, otherwise keyboard data is monitored and read to PC again;
(5) second-generation identity card reader transfers data to single-chip microcomputer, and whether single-chip microcomputer reads successfully;
(6) be then 16 system data to be converted to the region-position code data, otherwise keyboard data is monitored and read to PC again;
(7) keyboard control circuit is closed PC and is communicated by letter with keyboard;
(8) keyboard control circuit is carried the region-position code data communication device come to cross the PC keyboard port single-chip microcomputer to upload to PC and carry out input message work;
(9) keyboard control circuit is opened PC and is communicated by letter with keyboard;
(10) flow process periodic duty.
The present invention compares with prior art, and a kind of keyboard control circuit interface and disposal route thereof are provided, and by this keyboard control circuit, will be converted by the Serial Port Information that the second generation identity card read module is uploaded to the ps/2 interface message.Utilize this keyboard control circuit and process software, can automatically input ID (identity number) card information by simulating keyboard.The shortcut that reads China second-generation identity card in the computer is intercepted and captured, read the information of China second-generation identity card, then the data keypad signal of reading is issued computer, the communication normal transmission of other keyboard and computer.Fast, convenient, greatly increase work efficiency.
Description of drawings
Fig. 1 is module connection diagram of the present invention.
Fig. 2 is circuit connection diagram of the present invention.
Fig. 3 is software flow schematic diagram of the present invention.
Embodiment
The present invention is described further with reference to the accompanying drawings for the below.
As shown in Figure 1, an input end of keyboard control circuit connects the output terminal of keyboard, the output terminal of keyboard control circuit connects the input end of PC, and another input end of keyboard control circuit connects the output terminal of single-chip microcomputer, and the input end of single-chip microcomputer connects the output terminal of second-generation identity card reader.
As shown in Figure 2, circuit connects as follows, No. 2 CLK pins of PC end interface divide two-way, the end of one road contact resistance R1, another road connects the collector of transistor T 1, another termination power of resistance R 1, the end of the emitter contact resistance R2 of transistor T 1, another termination power of resistance R 2, the end of the base stage contact resistance R3 of transistor T 1; The end of the emitter contact resistance R1 of transistor T 2, the collector of transistor T 2 divides two-way, the end of one road contact resistance R2, another road connects the CLK pin of keyboard, the end of the base stage contact resistance R4 of transistor T 2, the other end of resistance R 4 connects the collector of transistor T 5 jointly together with the other end of R3, and the emitter of transistor T 5 connects power supply, the end of the base stage contact resistance R9 of transistor T 5, the other end of resistance R 9 connects the P1.4 port of the inner MCU chip of single-chip microcomputer; The DATA pin of PC end interface divides two-way, the end of one road contact resistance R5, another road connects the collector of transistor T 3, another termination power of resistance R 5, the end of the emitter contact resistance R6 of transistor T 3, another termination power of resistance R 6, the end of the base stage contact resistance R7 of transistor T 3, the other end of resistance R 7 divides two-way, and one the tunnel connects the collector of transistor T 5, the end of another road contact resistance R8, the other end of resistance R 8 connects the base stage of transistor T 4, the end of transistor T 4 emitter contact resistance R5, and the collector of transistor T 4 divides two-way, the end of one road contact resistance R6, another road connects the DATA pin of keyboard; The BEEP pin of second-generation identity card reader connects the P3.6 port of the inner MCU chip of single-chip microcomputer, the S-TX pin of second-generation identity card reader connects the P3.0 port of the inner MCU chip of single-chip microcomputer, the S-RX pin of second-generation identity card reader connects the P3.1 port of the inner MCU chip of single-chip microcomputer, the RST port of the inner MCU chip of single-chip microcomputer divides two-way, the end of one road contact resistance R10, another road connects the negative pole of capacitor C 3, and the positive pole of capacitor C 3 connects power supply, the other end ground connection of resistance R 10; The P1.5 port of the inner MCU chip of single-chip microcomputer connects the CLK pin of PC, and the P3.3 port of the inner MCU chip of single-chip microcomputer connects the DATA pin of PC; The P1.6 port of the inner MCU chip of single-chip microcomputer connects the DATA pin of keyboard, and the P3.2 port of the inner MCU chip of single-chip microcomputer connects the CLK pin of keyboard.
The inner MCU chip of single-chip microcomputer is provided with software model.
As shown in Figure 3, the software treatment scheme is as follows,
(1) power-up initializing is communicated with PC with keyboard;
(2) keyboard data is monitored and read to PC;
(3) second-generation identity card reader judges whether to read the second-generation identification card information hot key;
(4) be the information that then reads China second-generation identity card, and be converted to 16 system data, otherwise keyboard data is monitored and read to PC again;
(5) second-generation identity card reader transfers data to single-chip microcomputer, and whether single-chip microcomputer reads successfully;
(6) be then 16 system data to be converted to the region-position code data, otherwise keyboard data is monitored and read to PC again;
(7) keyboard control circuit is closed PC and is communicated by letter with keyboard, prevents from reading Certification of Second Generation information mistiming keypad and sneaks into keyboard information;
(8) keyboard control circuit is carried the region-position code data communication device come to cross the PC keyboard port single-chip microcomputer to upload to PC and carry out input message work;
(9) keyboard control circuit is opened PC and is communicated by letter with keyboard;
(10) flow process periodic duty.
Communicated by letter with second-generation identity card reader by the general UART port (RXD, TXD) on the main control MCU chip of single-chip microcomputer inside, by P1.5 and P3.3 port monitoring or read the PC data, by P1.6 and P3.2 port monitoring or read keyboard data.
It is that three modules are respectively that software section is divided into: the second generation identity card data read module, and PC and keyboard data receive and processing module, and 16 system I.D. data are converted to the region-position code data module.
Second generation identity card data read module: according to the relevant command set of stipulating in the relevant China second-generation identity card SAMV module relevant criterion of the Ministry of Public Security, write relative program by UART port controlling Certification of Second Generation read module reading identity card information.
PC and keyboard data receive and processing module: according to general keyboard and mouse communication protocol, the data of writing relevant PC and keyboard read and the transmission program.
16 system I.D. data are converted to the region-position code data module: because the second generation identity card data that the second generation identity card data read module obtains are 16 system data messages of Ministry of Public Security's regulation, and the data that will return to PC by keyboard interface are the keyboard location code data, so need write relevant data converter according to relevant consensus standard.
Claims (3)
1. Circuits System that reads second generation identity card information, it is characterized in that: circuit connects as follows, No. 2 CLK pins of PC end interface divide two-way, the end of one road contact resistance R1, another road connects the collector of transistor T 1, another termination power of resistance R 1, the end of the emitter contact resistance R2 of transistor T 1, another termination power of resistance R 2, the end of the base stage contact resistance R3 of transistor T 1; The end of the emitter contact resistance R1 of transistor T 2, the collector of transistor T 2 divides two-way, the end of one road contact resistance R2, another road connects the CLK pin of keyboard, the end of the base stage contact resistance R4 of transistor T 2, the other end of resistance R 4 connects the collector of transistor T 5 jointly together with the other end of R3, and the emitter of transistor T 5 connects power supply, the end of the base stage contact resistance R9 of transistor T 5, the other end of resistance R 9 connects the P1.4 port of the inner MCU chip of single-chip microcomputer; The DATA pin of PC end interface divides two-way, the end of one road contact resistance R5, another road connects the collector of transistor T 3, another termination power of resistance R 5, the end of the emitter contact resistance R6 of transistor T 3, another termination power of resistance R 6, the end of the base stage contact resistance R7 of transistor T 3, the other end of resistance R 7 divides two-way, and one the tunnel connects the collector of transistor T 5, the end of another road contact resistance R8, the other end of resistance R 8 connects the base stage of transistor T 4, the end of transistor T 4 emitter contact resistance R5, and the collector of transistor T 4 divides two-way, the end of one road contact resistance R6, another road connects the DATA pin of keyboard; The BEEP pin of second-generation identity card reader connects the P3.6 port of the inner MCU chip of single-chip microcomputer, the S-TX pin of second-generation identity card reader connects the P3.0 port of the inner MCU chip of single-chip microcomputer, the S-RX pin of second-generation identity card reader connects the P3.1 port of the inner MCU chip of single-chip microcomputer, the RST port of the inner MCU chip of single-chip microcomputer divides two-way, the end of one road contact resistance R10, another road connects the negative pole of capacitor C 3, and the positive pole of capacitor C 3 connects power supply, the other end ground connection of resistance R 10; The P1.5 port of the inner MCU chip of single-chip microcomputer connects the CLK pin of PC, and the P3.3 port of the inner MCU chip of single-chip microcomputer connects the DATA pin of PC; The P1.6 port of the inner MCU chip of single-chip microcomputer connects the DATA pin of keyboard, and the P3.2 port of the inner MCU chip of single-chip microcomputer connects the CLK pin of keyboard.
2. a kind of Circuits System that reads second generation identity card information according to claim 1 is characterized in that: the inner MCU chip of described single-chip microcomputer is provided with software model.
3. a kind of Circuits System that reads second generation identity card information according to claim 1 and 2, it is characterized in that: the software treatment scheme is as follows,
(1) power-up initializing is communicated with PC with keyboard;
(2) keyboard data is monitored and read to PC;
(3) second-generation identity card reader judges whether to read the second-generation identification card information hot key;
(4) be the information that then reads China second-generation identity card, and be converted to 16 system data, otherwise keyboard data is monitored and read to PC again;
(5) second-generation identity card reader transfers data to single-chip microcomputer, and whether single-chip microcomputer reads successfully;
(6) be then 16 system data to be converted to the region-position code data, otherwise keyboard data is monitored and read to PC again;
(7) keyboard control circuit is closed PC and is communicated by letter with keyboard;
(8) keyboard control circuit is carried the region-position code data communication device come to cross the PC keyboard port single-chip microcomputer to upload to PC and carry out input message work;
(9) keyboard control circuit is opened PC and is communicated by letter with keyboard;
(10) flow process periodic duty.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103700590A CN102902360A (en) | 2012-09-27 | 2012-09-27 | Circuit system for reading second generation identity card information, and processing method for same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103700590A CN102902360A (en) | 2012-09-27 | 2012-09-27 | Circuit system for reading second generation identity card information, and processing method for same |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102902360A true CN102902360A (en) | 2013-01-30 |
Family
ID=47574648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012103700590A Pending CN102902360A (en) | 2012-09-27 | 2012-09-27 | Circuit system for reading second generation identity card information, and processing method for same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102902360A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1892672A (en) * | 2005-07-05 | 2007-01-10 | 北京银洲通科技发展有限公司 | Reading system and method for reading information in second generation identity card |
CN201004232Y (en) * | 2006-01-17 | 2008-01-09 | 公安部第一研究所 | Identity check and entry system |
CN101187970A (en) * | 2007-06-26 | 2008-05-28 | 上海普天邮通科技股份有限公司 | Adapter for 2-G identity card reader |
US20090267613A1 (en) * | 2007-01-05 | 2009-10-29 | Apple Inc. | Systems and methods for determining the configuration of electronic connections |
CN102129543A (en) * | 2011-03-10 | 2011-07-20 | 成都因纳伟盛科技股份有限公司 | Second-generation identity card information automatic-entering adapter supporting multiple terminals and method thereof |
-
2012
- 2012-09-27 CN CN2012103700590A patent/CN102902360A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1892672A (en) * | 2005-07-05 | 2007-01-10 | 北京银洲通科技发展有限公司 | Reading system and method for reading information in second generation identity card |
CN201004232Y (en) * | 2006-01-17 | 2008-01-09 | 公安部第一研究所 | Identity check and entry system |
US20090267613A1 (en) * | 2007-01-05 | 2009-10-29 | Apple Inc. | Systems and methods for determining the configuration of electronic connections |
CN101187970A (en) * | 2007-06-26 | 2008-05-28 | 上海普天邮通科技股份有限公司 | Adapter for 2-G identity card reader |
CN102129543A (en) * | 2011-03-10 | 2011-07-20 | 成都因纳伟盛科技股份有限公司 | Second-generation identity card information automatic-entering adapter supporting multiple terminals and method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101840387B (en) | USB (Universal Serial Bus) Key device and method for realizing smart card communications using USB interface | |
CN107422838A (en) | A kind of Wearable, solution lock control system and solution lock control method | |
CN100535935C (en) | CPUCPU and logic encryption double-purpose smart card and its data synchronization method | |
CN102968325A (en) | USB (Universal Serial Bus) equipment and method and device for automatically initializing same | |
CN202102425U (en) | Port conversion device | |
CN102136082B (en) | High-speed and low-power-consumption SD (Secure Digital) card | |
CN105739884A (en) | Gesture event generation method and electronic device | |
CN102445981B (en) | Data transmission system and data transmission method | |
CN106067049A (en) | A kind of Android client card reading method based on NFC technique | |
CN206892955U (en) | Multi-functional formula Quick Response Code entrance guard device | |
CN102902360A (en) | Circuit system for reading second generation identity card information, and processing method for same | |
CN204667553U (en) | A kind of ATM affaris safety trade system | |
CN202815872U (en) | Identity authentication device with fingerprint identifying and ID card identifying functions | |
CN101719053A (en) | Method for reading IIC storage card by SPI interface | |
CN202838353U (en) | Intelligent card reader with PIN code inputting function | |
CN101329721A (en) | Non-contact card system capable of prolonging use distance | |
CN204009662U (en) | A kind of multi-function device of sector terminal | |
CN204188647U (en) | Contact card reliability test system | |
CN204990312U (en) | USB interface fingerprint equipment and encryption and decryption system | |
CN204759462U (en) | Bluetooth IC -card management system who possesses safe start control circuit | |
CN203276428U (en) | Multifunctional fiscard read-write apparatus | |
CN203386248U (en) | Attendance system with wireless U disk module | |
CN201654825U (en) | Usb key device | |
CN204229427U (en) | Intelligence Kato | |
CN210515306U (en) | Identity card reader module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130130 |