CN208271188U - According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol - Google Patents

According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol Download PDF

Info

Publication number
CN208271188U
CN208271188U CN201721912788.9U CN201721912788U CN208271188U CN 208271188 U CN208271188 U CN 208271188U CN 201721912788 U CN201721912788 U CN 201721912788U CN 208271188 U CN208271188 U CN 208271188U
Authority
CN
China
Prior art keywords
card
universal asynchronous
data
asynchronous receiving
transmitting transmitter
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
CN201721912788.9U
Other languages
Chinese (zh)
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.)
Purple Light Co Core Microelectronics Co Ltd
Original Assignee
Purple Light Co Core Microelectronics 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 Purple Light Co Core Microelectronics Co Ltd filed Critical Purple Light Co Core Microelectronics Co Ltd
Priority to CN201721912788.9U priority Critical patent/CN208271188U/en
Application granted granted Critical
Publication of CN208271188U publication Critical patent/CN208271188U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The utility model discloses a kind of circuits according to the automatic transmission process byte 60 of 7816 communications protocol, the circuit includes power supply recognition unit, data detecting unit and universal asynchronous receiving-transmitting transmitter, and universal asynchronous receiving-transmitting transmitter includes counter and shift register;The utility model is due to the clocking capability using universal asynchronous receiving-transmitting transmitter in smart card card, when so that reset signal port RST having found Data Detection, generate reset signal, after reset signal is stablized, detect card machine be handed down to the last one data of card starting, hardware counts automatically sample the WT time after, counter in universal asynchronous receiving-transmitting transmitter counts automatically sample the WT time after, the automatic transmission process byte 60 of shift register in universal asynchronous receiving-transmitting transmitter, card machine is set not have to count hair process byte 60 using software, the calculating response time is delayed, to avoid timeout issue.

Description

According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol
Technical field
The utility model relates to technical field of intelligent card, more particularly to according to the automatic transmission process word of 7816 communications protocol The circuit of section 60.
Background technique
It under the conditions of international standard ISO7816 communications protocol, is mutually communicated between card and card machine, after system electrification, i.e., Voltage VCC is the high moment, and the reset RST excessively defined time can also get higher, and after reset signal is stablized, card machine can be sent out to card Data are sent, the time that WI can be waited so long after transmission waits card machine response, and by the WT time, card machine needs to provide response Response.Time WT is that agreement regulation card machine sends the last one data to card and starts first number to from card to card machine response According to the time for starting to be separated by.And existing system I/O interface card machine to card send 5 data, the 5th namely the last one Data have started, and wait the time span of T1, and card will give card machine response, return to corresponding data B2.
It is card response timing diagram under 7816 contact conditions in the prior art referring to Fig. 1.The timing include power Vcc, Reset signal RST, clock signal clk, input/output interface signal IO.A1, A2, A3, A4 are that card machine is successively sent to card Data, the last one data that A5 card machine is sent to card, B1 are data of the card to card machine response.T1 is that card machine is sent out to card First data for giving the last one data to start to card to card machine response start the time being separated by.
The working method that facts have proved program response returned data in this waiting for CPU performing chip, when as same such as fruit chip Carve there are two interface, calculatings response needed to count on one side, reach the WT time will the waiting of transmission process byte 60, cause to ring Process is answered to tend to exceed WT time span, i.e. T1 is often greater than WT.After time span more than WT, input/output interface letter It number can not receive, card machine reaction time-out alarm can not work normally 7816 interfaces.Existing 7816 communication module is without certainly The function of dynamic hair process byte 60.If card machine waits card response time too long after sending data, can not be according to protocol requirement Time timely responds to card machine request, leads to answer failed.
Utility model content
In view of the above-mentioned deficiencies in the prior art, the purpose of this utility model is to utilize universal asynchronous receiving-transmitting transmitter The hardware logic of (Universal Asynchronous Receiver/Transmitter, abbreviation UART) interface controls, and is examining Measure card machine and be handed down to the last one data start signal of card, hardware counts automatically sample the WT time after, hardware circuit from Dynamic transmission process byte 60, then proceedes to wait, if responded within next WT time, hardware terminates timing, and card is given Card machine returning response;If do not responded to still within next WT time, hardware will continue to hair process byte 60, to accuse Tell that card machine continues waiting for, until card response, returned data, until card successful respond.
In order to reach above-mentioned technical purpose, the technical scheme adopted by the utility model is
A kind of circuit according to the automatic transmission process byte 60 of 7816 communications protocol, the circuit include that power supply identification is single Member, data detecting unit and universal asynchronous receiving-transmitting transmitter, universal asynchronous receiving-transmitting transmitter include counter and shift register, Wherein, data detecting unit and universal asynchronous receiving-transmitting transmitter are connected after external power supply Vcc connection power supply recognition unit, when external Clock signal port CLK connection data detecting unit and universal asynchronous receiving-transmitting transmitter, external reset signal port RST connection data Detection unit, external input output signal port I/O connection universal asynchronous receiving-transmitting transmitter, data detecting unit connection count Device, counter connect shift register;
After intelligent card chip powers on, since power Vcc is high voltage, data detecting unit detects reset signal port When RST has found Data Detection, reset signal is generated, after reset signal is stablized, card machine can send data, Data Detection list to card Member is detecting that card machine is handed down to the last one data start signal of card, and the counter in universal asynchronous receiving-transmitting transmitter is automatic After counting samples the WT time, the automatic transmission process byte 60 of shift register in universal asynchronous receiving-transmitting transmitter, then after It is continuous to wait;If responded within next WT time, hardware terminates timing, and card gives card machine returning response;If next It is not responded to still in a WT time, then hardware will continue to hair process byte 60, card machine is told to continue waiting for, until until card Piece response, returned data.
The utility model is due to the clocking capability using universal asynchronous receiving-transmitting transmitter in smart card card, so that resetting letter When number port RST discovery Data Detection, reset signal is generated, after reset signal is stablized, is detecting that card machine is handed down to card most The latter data starting, hardware counts automatically sample the WT time after, the counter in universal asynchronous receiving-transmitting transmitter is counted automatically After number samples the WT time, the automatic transmission process byte 60 of shift register in universal asynchronous receiving-transmitting transmitter makes card machine not Hair process byte 60 is counted with using software, has delayed the calculating response time, to avoid timeout issue.
In addition, only having an interfaces for synchronization but the relative complex card of calculating process, card are detecting To after the last one data starting waiting WT time of transmission, if no data responds, with regard to automatic transmission process byte 60, do not have to again It continues waiting for, causes timeout issue, make the response success rate 100% of card machine, greatly improve work efficiency.
The utility model is described further with reference to the accompanying drawings and detailed description.
Detailed description of the invention
Fig. 1 is for IC smart card card response timing diagram under the conditions of existing 7816 communications protocol.
Fig. 2 is the circuit structure according to the automatic transmission process byte 60 of 7816 communications protocol of the utility model specific implementation Figure.
Fig. 3 is the IC smart card card response timing diagram of the utility model specific implementation.
Specific embodiment
As shown in Fig. 2, being the utility model specific implementation according to the automatic transmission process byte 60 of 7816 communications protocol Circuit structure diagram.In Fig. 2, VCC is external power supply, and RST is reset signal port, and CLK is clock signal port, and IO is that input is defeated Signal port out, Analog are power supply recognition unit, and por is power on signal, and UART is universal asynchronous receiving-transmitting transmitter, and CNT is Counter, shifter are shift register, deposit 60 for 16 systems and turn serial transmission unit.The utility model according to 7816 The circuit of the automatic transmission process byte 60 of communications protocol includes power supply recognition unit Analog, data detecting unit and universal asynchronous Receiving-transmitting transmitter UART, universal asynchronous receiving-transmitting transmitter UART include counter cnt and shift register Shifter, wherein electricity Data detecting unit and universal asynchronous receiving-transmitting transmitter UART, clock signal port are connected after source VCC connection power supply recognition unit CLK connection data detecting unit and universal asynchronous receiving-transmitting transmitter UART, reset signal port RST connection data detecting unit, Input/output signal port IO connection universal asynchronous receiving-transmitting transmitter UART, data detecting unit linkage counter CNT, counter Connect shift register Shifter.
After intelligent card chip powers on, since power Vcc is high voltage, data detecting unit detects reset signal port When RST has found Data Detection, reset signal is generated, after reset signal is stablized, card machine can send data, Data Detection list to card Member is detecting that card machine is handed down to the last one data start signal of card Data_start, universal asynchronous receiving-transmitting transmitter UART In counter cnt count automatically and sample the WT time after, the shift register in universal asynchronous receiving-transmitting transmitter UART The automatic transmission process byte 60 of Shifter, then proceedes to wait;If responded within next WT time, hardware terminates to count When, card gives card machine returning response;If do not responded to still within next WT time, hardware will continue to hair proword Section 60, tells card machine to continue waiting for, until until card responds, returned data.
As shown in figure 3, for the IC smart card card response timing diagram of the utility model specific implementation.In Fig. 3, including voltage Vcc, reset signal RST, clock model CLK, input/output interface signal IO.A1, A2, A3, A4 are that card machine is successively sent out to card The data sent, the last one data that A5 card machine is sent to card, B1 are data of the card to card machine response.T1 is card machine to card Piece sends first data that the last one data starts to card to card machine response and starts the time being separated by.T2 is that hardware is automatic Start after sending 60 to card to respond the time before hair data.
After system electrification, i.e., voltage vcc is the high moment, and the reset signal RST excessively defined time can also get higher, multiple After the signal stabilization of position, card machine can send data to card, and the time that WI can be waited so long after transmission waits card machine response, passes through The WT time is spent, if card machine is not replied, universal asynchronous receiving-transmitting transmitter UART is connect with hardware logic electric circuit from trend input and output Mouth IO transmission process byte 60, makes card machine continue waiting for responding.The T2 time is continued waiting for, and T2 is less than or equal to WT, obtains card Response data returns to card machine.
The implementation of counter in the designed circuit of the utility model is not limited to embodiment discussed above. Obvious transformation or substitution based on the utility model enlightenment should also be as being considered within the protection scope of the utility model. Above specific embodiment is used to disclose the best implementation method of the utility model, so that those skilled in the art The purpose of this utility model can be reached using the numerous embodiments and a variety of alternatives of the utility model.

Claims (1)

1. a kind of circuit according to the automatic transmission process byte 60 of 7816 communications protocol, which is characterized in that the circuit includes electricity Identifing source unit, data detecting unit and universal asynchronous receiving-transmitting transmitter, universal asynchronous receiving-transmitting transmitter include counter and shifting Bit register, wherein data detecting unit and universal asynchronous receiving-transmitting transmission are connected after external power supply Vcc connection power supply recognition unit Device, external timing signal port CLK connection data detecting unit and universal asynchronous receiving-transmitting transmitter, external reset signal port RST connection data detecting unit, external input output signal port I/O connection universal asynchronous receiving-transmitting transmitter, Data Detection list First linkage counter, counter connect shift register;
After intelligent card chip powers on, since power Vcc is high voltage, data detecting unit detects reset signal port RST It was found that generating reset signal when Data Detection, after reset signal is stablized, card machine can send data, data detecting unit to card Detecting that card machine is handed down to the last one data start signal of card, the counter in universal asynchronous receiving-transmitting transmitter is counted automatically After number samples the WT time, the automatic transmission process byte 60 of shift register in universal asynchronous receiving-transmitting transmitter is then proceeded to It waits;If responded within next WT time, hardware terminates timing, and card gives card machine returning response;If next It is not responded to still in the WT time, then hardware will continue to hair process byte 60, card machine is told to continue waiting for, until waiting until card Response, returned data.
CN201721912788.9U 2017-12-30 2017-12-30 According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol Active CN208271188U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721912788.9U CN208271188U (en) 2017-12-30 2017-12-30 According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721912788.9U CN208271188U (en) 2017-12-30 2017-12-30 According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol

Publications (1)

Publication Number Publication Date
CN208271188U true CN208271188U (en) 2018-12-21

Family

ID=64673708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721912788.9U Active CN208271188U (en) 2017-12-30 2017-12-30 According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol

Country Status (1)

Country Link
CN (1) CN208271188U (en)

Similar Documents

Publication Publication Date Title
CN106453383B (en) UART-based master-slave multi-machine communication system and method
US4831358A (en) Communications system employing control line minimization
US11175928B2 (en) Master-slave configuration communication protocol, method for improving compatibility, and electronic device
CN103645975B (en) A kind of method of abnormal restoring and serial bus transmission device
CN115955518B (en) Communication conversion method, device and storage medium for communication between master and slave devices
CN102073602A (en) Computer system, connection control device as well as connecting and disconnecting method
CN206353315U (en) Circuit that is electric and sending 3B command signals on a kind of automatic detection chip
CN208271188U (en) According to the circuit of the automatic transmission process byte 60 of 7816 communications protocol
CN113792003A (en) Single bus communication unit, system and method
CN104251536A (en) One-to-many current loop communication method and communication device
CN202750089U (en) Bluetooth device and integrated peripheral devices
CN117033277A (en) Single-wire communication control device and data processing method
CN116541329A (en) Data transmission method, device, equipment and medium
CN115913816B (en) Communication conversion device and method for communication between master equipment and slave equipment
CN201716721U (en) Memory device with various connectors
US7172129B2 (en) Integrated circuit card capable of automatically transmitting NULL byte information without intervention by CPU
CN110989451B (en) Detection control method based on multi-point touch and remote control shared detection control system
CN104765710B (en) A kind of method of work of the card reader comprising dual processor
CN209044798U (en) Recharging device based on near-field communication
CN113890783A (en) Data transmitting and receiving system and method, electronic equipment and storage medium
CN107346180A (en) A kind of PS2 computer keyboard interfaces design based on singlechip technology
CN114490488A (en) Low-power-consumption UART serial port system
CN114884768B (en) Detection device, system and detection method for bus idle state
CN212850538U (en) Device for realizing RS485 multi-host communication and RS485 communication system
CN209992996U (en) Smart card with electric leakage detection function

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant