CN103198339B - A kind of multichannel contact key IC-card read-write equipment - Google Patents
A kind of multichannel contact key IC-card read-write equipment Download PDFInfo
- Publication number
- CN103198339B CN103198339B CN201310084151.5A CN201310084151A CN103198339B CN 103198339 B CN103198339 B CN 103198339B CN 201310084151 A CN201310084151 A CN 201310084151A CN 103198339 B CN103198339 B CN 103198339B
- Authority
- CN
- China
- Prior art keywords
- oxide
- metal
- effect transistor
- field effect
- semiconductor field
- 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
Links
Abstract
The invention discloses a kind of multichannel contact key IC-card read-write equipment, comprise data transmit circuit and data receiver circuit, data transmit circuit comprises the first metal-oxide-semiconductor field effect transistor, the second metal-oxide-semiconductor field effect transistor, the first pull-up resistor and n passage gating circuit in parallel, and data receiver circuit comprises the 4th metal-oxide-semiconductor field effect transistor, the 3rd pull-up resistor and n germanium diode.During apparatus of the present invention access microprocessor, microprocessor can be undertaken resetting and select corresponding key IC-card passage by arranging I/O foot control system corresponding key IC-card, realizes the read-write to IC-card by serial communication interface.The present invention can reduce the cost of access of multichannel key IC-card, simplifies the program of microprocessor reading and writing IC card, promotes read-write equipment treatment effeciency.
Description
Technical field
The invention belongs to ticket card reader field, relate to a kind of key module read-write equipment of ticket card reader.
Background technology
Electronic ticket card is widely used in the occasions such as dining room dinning card, phonecard, government utility rate card.Owing to comprising the sensitive datas such as wallet in Electronic ticket card, therefore need to adopt cryptographic key protection.Ticket card reader, when operating Electronic ticket card, first needs the key obtaining this ticket card.Therefore the cipher key calculation module of installing Electronic ticket card is needed in ticket card reader.
In practice, normally a kind of contact intellective IC card of cipher key calculation module, realizes the computing function of key by loading special card operating system (COS).Contact Type Ic Card is a kind of product of specification, no matter its profile, or the electrical specification of its inside chip, all need to meet ISO/IEC 7816 agreement.Contact Type Ic Card comprises as lower contact: power supply pin, for accessing outside power supply; Lower margin, for accessing outside power supply ground; Resetting pin, realizes resetting to IC-card in order to receive negative pulse; Clock pin, in order to receive outside clock signal; Data pin, in order to the input and output of data.
Because ticket Card processor often needs the ticket card processing multiple card issuer distribution, therefore often need in ticket card reader to install multiple key module, this requires that the microprocessor of read write line needs the ability of the ISO7816 possessing access multichannel.
Interface shape between the microprocessor of current read write line and smart card has following several:
1. microprocessor carries ISO7816 interface.Owing to only having minority microprocessor band ISO7816 interface, larger restriction is brought to microprocessor type selecting.And these microprocessors are often only with a road ISO7816 interface, cannot read and write multiple smart card.
2. microprocessor adopts special Contact Type Ic Card interface chip to operate smart card.ISO7816 interface chip due to single channel only supports the intellective IC card on a road, and therefore multi-way intelligence IC-card needs to use multiple ISO7816 interface chip, cost higher.In addition use special chip, need to develop special interface software.
3. microprocessor uses I/O pin, with the sequential of software simulation ISO7816 logic.Because the accuracy requirement of ISO7816 to sequential is higher, comparatively complicated with software simulation, usually need assemble programming to meet accurate timing requirements, programme very complicated, and need to consume a large amount of CPU computational resources.
Summary of the invention
Technical matters: the invention provides a kind of with low cost, debugging is simple, the multichannel contact key IC-card read-write equipment that can improve ticket card treatment effeciency.
Technical scheme: multichannel contact key IC-card read-write equipment of the present invention, comprise data transmit circuit and data receiver circuit, data transmit circuit comprises the first metal-oxide-semiconductor field effect transistor, second metal-oxide-semiconductor field effect transistor, the passage gating circuit of the first pull-up resistor and n parallel connection, the source ground of the first metal-oxide-semiconductor field effect transistor, drain electrode connects the grid of the first pull-up resistor and the second metal-oxide-semiconductor field effect transistor, the source ground of the second metal-oxide-semiconductor field effect transistor, drain electrode is connected with the common port of the passage gating circuit of n parallel connection, passage gating circuit comprises the 3rd metal-oxide-semiconductor field effect transistor and the second pull-up resistor, the drain electrode of the 3rd metal-oxide-semiconductor field effect transistor is connected with the second pull-up resistor, the source electrode of n the 3rd metal-oxide-semiconductor field effect transistor connects into common port, data receiver circuit comprises the 4th metal-oxide-semiconductor field effect transistor, the 3rd pull-up resistor and n germanium diode, the drain electrode of the 4th metal-oxide-semiconductor field effect transistor is connected with the 3rd pull-up resistor, the positive pole of n germanium diode is connected with the source electrode of the 4th metal-oxide-semiconductor field effect transistor, n germanium diode and n passage gating circuit one_to_one corresponding, the negative pole of germanium diode is connected with the drain electrode of the 3rd metal-oxide-semiconductor field effect transistor, and the grid of the first metal-oxide-semiconductor field effect transistor is connected with the grid of the 4th metal-oxide-semiconductor field effect transistor.
Beneficial effect: the present invention compared with prior art, has the following advantages:
Interface circuit of the present invention only uses a road asynchronous serial communication interface of microprocessor and some I/O pin resources, and these resources are that most microprocessors all possesses.
The present invention only adopts a small amount of semiconductor devices and resistance can realize multichannel ISO7816 interface, with low cost, debugging is simple.
The present invention is by arranging the baud rate of different asynchronous serial communication interfaces to support the key IC-card of common various speed.
Except needing to arrange the selection I/O feet state of corresponding passage before data communication and reset except the baud rate of asynchronous serial communication interface, the data communication mode that the present invention operates key IC-card is identical with the communication mode of the asynchronous serial communication interface transceiving data of conventional common microprocessor, and program design is simple.
Due in program, asynchronous serial communication interface data communication can adopt the mode of interruption to work usually, and therefore use the present invention when communicating to key IC-card, reader processing device synchronously can carry out other process, improves the treatment effeciency of ticket card.
Accompanying drawing explanation
Fig. 1 is structural principle schematic diagram of the present invention.
Fig. 2 is communication process schematic diagram of the present invention.
Embodiment
Multichannel contact key IC-card read-write equipment of the present invention, comprise data transmit circuit 1 and data receiver circuit 2, data transmit circuit 1 comprises the passage gating circuit 14 of the first metal-oxide-semiconductor field effect transistor 11, second metal-oxide-semiconductor field effect transistor 12, first pull-up resistor 13 and n parallel connection.The data output pin of microprocessor asynchronous serial communication connects the grid of the first metal-oxide-semiconductor field effect transistor 11 as the input of data transmit circuit, first metal-oxide-semiconductor field effect transistor 11 source ground, drain electrode connects the first pull-up resistor 13, form a phase inverter, the drain electrode of the first metal-oxide-semiconductor field effect transistor is the output of this reverser, connects the grid of the second metal-oxide-semiconductor field effect transistor 12, the source ground of the second metal-oxide-semiconductor field effect transistor 12, drain electrode is connected with the common port of the passage gating circuit 14 of n parallel connection, passage gating circuit 14 comprises the 3rd metal-oxide-semiconductor field effect transistor 141 and the second pull-up resistor 142, the drain electrode of the 3rd metal-oxide-semiconductor field effect transistor 141 is connected with the second pull-up resistor 142 and is connected with the data pin of key IC-card, the source electrode of n the 3rd metal-oxide-semiconductor field effect transistor 141 connects into common port, passage gating circuit and second metal-oxide-semiconductor field effect transistor 12 on each road form a road NAND gate circuit respectively, the drain electrode of the 3rd metal-oxide-semiconductor field effect transistor 141 of the passage gating circuit on each road is the output of this road Sheffer stroke gate, connect the data pin of n key IC-card correspondingly, microprocessor also needs provide n I/O interface and be connected with the grid of the 3rd metal-oxide-semiconductor field effect transistor 141 of n passage gating circuit correspondingly, operationally, the I/O Interface status that the key IC-card passage only having a road to be strobed is corresponding is height, and other I/O Interface status remains low.
When microprocessor sends data by asynchronous serial communication interface to key IC-card, if data bit is high, first metal-oxide-semiconductor field effect transistor 11 conducting, drain electrode state is low, second metal-oxide-semiconductor field effect transistor 12 ends, 3rd metal-oxide-semiconductor field effect transistor 141 of now all passage gating circuits ends, and the drain electrode of the 3rd metal-oxide-semiconductor field effect transistor 141 exports as high; If data bit is low, first metal-oxide-semiconductor field effect transistor 11 ends, drain electrode state is high, second metal-oxide-semiconductor field effect transistor 12 conducting, if now the grid of the 3rd metal-oxide-semiconductor field effect transistor 141 of certain passage gating circuit is high, then the 3rd metal-oxide-semiconductor field effect transistor 141 conducting, drain electrode exports as low, if the grid of the 3rd metal-oxide-semiconductor field effect transistor 141 of certain passage gating circuit is low, then the 3rd metal-oxide-semiconductor field effect transistor 141 ends, and drain electrode exports as high.Thus, realize sending data by asynchronous serial communication interface to the key IC-card data human hair combing waste of the passage of specifying.
Data receiver circuit 2 comprises the 4th metal-oxide-semiconductor field effect transistor 21, 3rd pull-up resistor 22 and n germanium diode 23, the drain electrode of the 4th metal-oxide-semiconductor field effect transistor 21 is connected with the 3rd pull-up resistor 22, the positive pole of n germanium diode 23 is connected with the source electrode of the 4th metal-oxide-semiconductor field effect transistor 21, n germanium diode 23 and n passage gating circuit 14 one_to_one corresponding, the negative pole of germanium diode 23 is connected with the drain electrode of the 3rd metal-oxide-semiconductor field effect transistor 141, the negative pole of germanium diode 23 connects the data pin of each key IC-card respectively, the grid of the first metal-oxide-semiconductor field effect transistor 11 is connected with the asynchronous serial communication interface data output pin of the grid of the 4th metal-oxide-semiconductor field effect transistor 21 and microprocessor, the drain electrode of the 4th metal-oxide-semiconductor field effect transistor 21 connects the data input pin of the asynchronous serial communication interface of microprocessor.
The data output pin of asynchronous serial communication interface is the Enable Pin of whole receiving circuit, and when this Enable Pin state is low, the 4th metal-oxide-semiconductor field effect transistor 21 ends, and drain electrode state is high; When this Enable Pin state is high, if all key IC-cards export as time high, the common port state that the positive pole of n germanium diode 23 connects is high, 4th metal-oxide-semiconductor field effect transistor 21 ends, drain electrode state is high, if wherein the key IC-card on a certain road exports as time low, the common port state that the positive pole of n germanium diode 23 connects is high, 4th metal-oxide-semiconductor field effect transistor 21 conducting, drain electrode state is low.Therefore, this receiving circuit only works when the data output pin of serial communication interface remains high, realizes key IC-card send function from data to the data receiver human hair combing waste of asynchronous serial communication interface.
In the present invention, use the output of active crystal oscillator to be connected with the clock pin of all key IC-cards, provide clock signal to key IC-card, this clock signal more than 5M HZ, can not select 3.5712M HZ frequency usually.
Microprocessor also needs n I/O interface respectively in order to each key IC-card that resets, and n is used as to be connected with the resetting pin of each key IC-card respectively to the I/O interface that key IC-card resets.When resetting to a certain road key IC-card, microprocessor exports to the reset I/O interface that this road key IC-card is corresponding the negative pulse that width is more than 0.1 second, and the reset I/O feet state keeping other all is high, namely realizes the reset to key IC-card.
In the present invention, microprocessor is when reading and writing key IC-card, and first need the selection I/O feet state of corresponding IC-card passage to set high, other channel selecting I/O feet states set low; Next arranges the baud rate of serial ports, and serial port baud rate=clock frequency × key IC-card baud rate corrects parameter ÷ key IC-card clock rate conversion factor; Arranging serial ports is 8 bit data positions, even parity check, 1 position of rest pattern, and asynchronous serial communication interface can be used thereafter to communicate with key IC-card in the mode of asynchronous communication.
In the present invention, the first character that asynchronous serial communication interface receives after data are sent makes a mistake, then microprocessor sends Frame by asynchronous serial communication interface again; When the data that asynchronous serial communication interface is subsequently received make a mistake or the data that receive do not meet the regulation of ISO7816, Ze Duigai road key IC-card carries out reset operation.
Above embodiment is only for illustration of the present invention; and not the present invention is limited; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (1)
1. a multichannel contact key IC-card read-write equipment, it is characterized in that, this device comprises data transmit circuit (1) and data receiver circuit (2), described data transmit circuit (1) comprises the first metal-oxide-semiconductor field effect transistor (11), second metal-oxide-semiconductor field effect transistor (12), the passage gating circuit (14) of the first pull-up resistor (13) and n parallel connection, the source ground of described first metal-oxide-semiconductor field effect transistor (11), the drain electrode of the first metal-oxide-semiconductor field effect transistor (11) connects the grid of the first pull-up resistor (13) and the second metal-oxide-semiconductor field effect transistor (12), the source ground of described second metal-oxide-semiconductor field effect transistor (12), the drain electrode of the second metal-oxide-semiconductor field effect transistor (12) is connected with the common port of the passage gating circuit (14) of n parallel connection, described passage gating circuit (14) comprises the 3rd metal-oxide-semiconductor field effect transistor (141) and the second pull-up resistor (142), the drain electrode of described 3rd metal-oxide-semiconductor field effect transistor (141) is connected with the second pull-up resistor (142), the source electrode of n the 3rd metal-oxide-semiconductor field effect transistor (141) connects into common port,
Described data receiver circuit (2) comprises the 4th metal-oxide-semiconductor field effect transistor (21), 3rd pull-up resistor (22) and n germanium diode (23), the drain electrode of described 4th metal-oxide-semiconductor field effect transistor (21) is connected with the 3rd pull-up resistor (22), the positive pole of n germanium diode (23) is connected with the source electrode of the 4th metal-oxide-semiconductor field effect transistor (21), n germanium diode (23) and n passage gating circuit (14) one_to_one corresponding, the negative pole of germanium diode (23) is connected with the drain electrode of the 3rd metal-oxide-semiconductor field effect transistor (141), the grid of the first metal-oxide-semiconductor field effect transistor (11) is connected with the grid of the 4th metal-oxide-semiconductor field effect transistor (21).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310084151.5A CN103198339B (en) | 2013-03-18 | 2013-03-18 | A kind of multichannel contact key IC-card read-write equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310084151.5A CN103198339B (en) | 2013-03-18 | 2013-03-18 | A kind of multichannel contact key IC-card read-write equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103198339A CN103198339A (en) | 2013-07-10 |
CN103198339B true CN103198339B (en) | 2015-09-09 |
Family
ID=48720869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310084151.5A Active CN103198339B (en) | 2013-03-18 | 2013-03-18 | A kind of multichannel contact key IC-card read-write equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103198339B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104009462B (en) * | 2014-06-10 | 2016-08-31 | 福建师范大学 | A kind of communication interface adapter circuit of self-adaptive level |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075297A (en) * | 2006-05-16 | 2007-11-21 | 张敏 | Universal encoding-decoding and read-write device for non-contacting IC card |
CN202373000U (en) * | 2011-08-25 | 2012-08-08 | 胡旭光 | Non-contact IC card read-write device used for cell phone |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2792130B1 (en) * | 1999-04-07 | 2001-11-16 | St Microelectronics Sa | ELECTROMAGNETIC TRANSPONDER WITH VERY CLOSE COUPLING OPERATION |
JP4168726B2 (en) * | 2002-10-22 | 2008-10-22 | ソニー株式会社 | IC module and IC module antenna |
-
2013
- 2013-03-18 CN CN201310084151.5A patent/CN103198339B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075297A (en) * | 2006-05-16 | 2007-11-21 | 张敏 | Universal encoding-decoding and read-write device for non-contacting IC card |
CN202373000U (en) * | 2011-08-25 | 2012-08-08 | 胡旭光 | Non-contact IC card read-write device used for cell phone |
Also Published As
Publication number | Publication date |
---|---|
CN103198339A (en) | 2013-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103559152A (en) | Device and method for CPU (central processing unit) to access local bus on basis of PCIE (peripheral component interface express) protocol | |
CN106970894A (en) | A kind of FPGA isomery accelerator cards based on Arria10 | |
CN205692166U (en) | Core board based on PowerPC framework central processing unit | |
CN102880235B (en) | Single-board computer based on loongson 2F central processing unit (CPU) as well as reset management and using method of single-board computer | |
CN102402704B (en) | Compound multifunctional IC card reader-writer | |
CN103198339B (en) | A kind of multichannel contact key IC-card read-write equipment | |
CN203217595U (en) | Multipath contact type IC card read/write device | |
CN208538124U (en) | A kind of server master board based on 1621 processor of Shen prestige | |
CN101131666B (en) | Contact smart card simulation card | |
CN204731785U (en) | Based on the identifying code intelligent acquisition equipment of cloud platform management | |
CN204288237U (en) | A kind of Network Smart Card Reader-Writer | |
CN203720863U (en) | Large-capacity-USIM mass-storage issuing device | |
CN206282319U (en) | A kind of intermediary message service charge collection system based on Internet of Things | |
CN204557400U (en) | The finger print mouse of energy automatic locking | |
CN103679257B (en) | A kind of contactless payment telecommunications integrated circuit card and implementation method | |
CN202995822U (en) | An automatic fare collection system master control unit | |
CN108108801B (en) | Device for realizing data read-write by simulating contact type IC card and read-write method | |
CN202373077U (en) | Double-frequency active radio frequency identification intelligent cabinet | |
CN206193856U (en) | Food safety traceability system based on RFID technique | |
CN205845211U (en) | A kind of multi-functional public transport card fills shifting money POS | |
CN106682556B (en) | A kind of method of automatic acquisition finance Card Type | |
CN204231383U (en) | A kind of novel device device for adjusting and measuring meeting ISO7816 protocol interface | |
CN104200844A (en) | Method for programming and reading OTP ROM (One Time Programmable Read-Only Memory) with password | |
CN108108564A (en) | The apparatus and method that a kind of raising system starts speed | |
CN203276428U (en) | Multifunctional fiscard read-write apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |