CN102122362B - Method for improving communication rate of contact-type intelligent card - Google Patents

Method for improving communication rate of contact-type intelligent card Download PDF

Info

Publication number
CN102122362B
CN102122362B CN2010100224875A CN201010022487A CN102122362B CN 102122362 B CN102122362 B CN 102122362B CN 2010100224875 A CN2010100224875 A CN 2010100224875A CN 201010022487 A CN201010022487 A CN 201010022487A CN 102122362 B CN102122362 B CN 102122362B
Authority
CN
China
Prior art keywords
data
fifo
card
contact
logic unit
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
CN2010100224875A
Other languages
Chinese (zh)
Other versions
CN102122362A (en
Inventor
薛平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huahong Integrated Circuit Design Co., Ltd.
Original Assignee
BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN 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 BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN Co Ltd filed Critical BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN Co Ltd
Priority to CN2010100224875A priority Critical patent/CN102122362B/en
Publication of CN102122362A publication Critical patent/CN102122362A/en
Application granted granted Critical
Publication of CN102122362B publication Critical patent/CN102122362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides a method for improving communication rate of a contact-type intelligent card, which comprises the following steps of: performing data transmission by adopting a mode that a hardware circuit control logic unit automatically switches receiving and transmitting of data; implementing data caching by adopting a first-in first-out (FIFO) mode in the transmission process, and independently controlling FIFO receiving and FIFO transmitting respectively; and generating an interrupt once a byte is accurately received when the data are received, and generating an interrupt after the data in all caches are totally accurately transmitted when the data are transmitted. By adopting the mode that the hardware circuit control logic unit automatically switches receiving and transmitting of the data, the communication rate of the contact-type intelligent card is not affected by the application software processing rate in the card, so the time of processing the software in the card can be increased, and the stability and the processing efficiency of the application software of the intelligent card can be effectively improved.

Description

A kind of method that improves communication rate of contact-type intelligent card
Technical field
The present invention relates to a kind of method that improves the integrated circuit traffic rate, relate in particular to a kind of method that improves communication rate of contact-type intelligent card.
Background technology
IC-card (integrated circuit card) or title smart card, be a kind of plastic cards of credit card sized size, encapsulated in card and comprised storage encryption, and the integrated circuit (IC) chip module of data-handling capacity.That IC-card has is antimagnetic, electrostatic prevention, damage resistance and durability strong, antifalsification is good, the storage data capacity is large, safe, application apparatus and system network environment cost are low, the characteristics such as technical manual maturation.Along with smart card enters in the daily life application of people, such as consumption card, social security card, mass transit card etc., its high security now more and more is subject to people's generally attention, in increasing field, replaces magnetic card and other data card, has obtained application more and more widely.
The communication interface of smart card is divided into contact and contactless two kinds of forms, ISO/IEC 7816 standards are ISO (International Organization for Standardization, International Standards Organization) and IEC (International Electrotechnical Commission, International Electrotechnical Commission) the Contact Type Ic Card standard of definition, third part ISO/IEC 7816-3 part standard in its standard electric interfaces and host-host protocol, comprise the character format of data transmission and command format etc., the theoretical highest communication speed of supporting is 625kbps.But, in actual application, contact intelligent card adopts traditional realization mechanism more, the problem that exists a lot of software and hardwares to coordinate, its communication digit rate can only reach the speed of 112kbps at most, and this situation has affected the demand of data transmission in the application greatly.
Summary of the invention
The object of the invention provides a kind of method that improves communication rate of contact-type intelligent card, and the communications protocol based on the ISO/IEC7816-3 standard improves its communication digit rate, and ideal value reaches 625kbps, meets the demand of application.
A kind of method that improves communication rate of contact-type intelligent card comprises following content:
(1) pattern that adopts the automatic switchover of hardware circuit steering logic unit to receive or send data is advanced
The row data transmission;
(2) in transmitting procedure, adopt the FIFO mode to realize data buffer storage, receive FIFO and send FIFO
Independent control respectively;
(3), while receiving data, byte of every correct reception produces once interrupts, and sends data time institute
There are the data in buffer memory all after correct the transmission, to be produced and interrupt.
When data transmission procedure, acquiescence is in receiving mode.While having data to send, arrange data are write and send FIFO (First-in First-out by software, first in first out), the mode control logic unit automatically switches to sending mode, by sending the steering logic unit, the data in FIFO is sent.After successfully sending the interior all data of buffer memory, the mode control logic unit can be switched to receiving mode within the stand-by period.When reception steering logic unit receives new data, it is write and receive FIFO and processed by interrupting the annoyware program.
In data are carried out to the process of buffer memory, but a plurality of byte datas of buffer memory, and the FIFO size is determined by system requirements.According to definite content in ISO/IEC 7816 standards, the order length of each communication is 5 bytes, the longest 256 bytes of data length, and FIFO can be defined as the arbitrary value in 5~256 bytes according to demand.Can suitably increase the size of FIFO under the prerequisite that reduces as far as possible the hardware design resource, give the processing time of software abundance.Receive FIFO and send FIFO independent control respectively, when receiving, hardware circuit can receive a plurality of data, and while sending data, software can write many byte datas of FIFO at every turn, between the data of reception and the data of transmission, can not produce mutually conflict.
When receiving data, byte of every correct reception produces once interrupts, generation at once after the judgement parity check bit is correct.Software can have more 2 bit times and carry out the data processing; When sending data, data in all buffer memorys produce and interrupt again after all correctly being sent, smart card software can disposablely all write buffer memory to all data that send that need, perhaps disposablely can't all write fashionable can in batches writing, send again the next group data being sent completely after a collection of at every turn.
Adopt implementation method provided by the invention, the communication speed of contact intelligent card can not be subject to the impact of the interior application software of card processing speed, can increase like this time that in card, software is processed, and can effectively improve stability and the treatment effeciency of smart card application software.
The accompanying drawing explanation
A kind of method schematic diagram that improves communication rate of contact-type intelligent card of Fig. 1
Hardware interface schematic diagram in Fig. 2 ISO/IEC 7816 standards
Communication character format schematic diagram in Fig. 3 ISO/IEC 7816 standards
Embodiment
Below in conjunction with each accompanying drawing, content of the present invention is described in detail:
Fig. 3 is the character transmission form of stipulating in ISO/IEC 7816 standards, and each byte transmission comprises a start bit, 8 data bit, parity check bit, and stand-by period.The low level that wherein start bit is a bit time, the high level that the stand-by period is 2 bit times, sending a required time of complete bytes is 12 bit times.Start bit representative data transmission starts, and the take over party starts to receive data after receiving start bit, and, according to the correctness of parity check bit verification msg, as incorrect, requires to retransmit.
The method schematic diagram that Fig. 1 is raising communication rate of contact-type intelligent card provided by the present invention, the module diagram that Fig. 2 is ISO/IEC 7816 standard interfaces that relate in the present invention, comprise mode control logic unit, sending and receiving steering logic unit, sending and receiving FIFO, input/output port and CPU element.The mode control logic unit, for the switching of receiving mode and sending mode, is switched to sending mode while in sending FIFO, having the data that are not sent out; After data in all transmission FIFO successfully are sent completely, switch to receiving mode.Send logic according to the character transmission form of stipulating in ISO/IEC 7816 standards, data are sent by input/output port, the receive logic unit receives the data of input/output port according to same transformat, and store in reception FIFO, send FIFO and receive FIFO respectively as the data buffer storage under the sending and receiving pattern, independent control.
The size of FIFO determines according to system requirements, and according to stipulating in ISO/IEC 7816 standards, the order length of each communication is 5 bytes, the longest 256 bytes of data length, and FIFO can be decided to be the arbitrary value in 5~256 bytes as required.Can suitably increase the size of FIFO under the prerequisite that reduces as far as possible hardware resource, give the interior software of smart card with the sufficient processing time.
When data receiver, produce once and interrupt whenever correctly receiving byte, after the judgement parity check bit is correct, produce at once, therefore make software have more 2 bit times and carry out other processing.When sending data, produce and interrupt again after the data in all buffer memorys all correctly are sent completely, smart card software can disposablely all write buffer memory to all data that send that need like this, once can't all write fashionable can in batches writing, be sent completely a collection of next group that sends again at every turn, can increase like this time that smart card software is processed, contribute to improve stability and the treatment effeciency of software.

Claims (2)

1. a method that improves communication rate of contact-type intelligent card is characterized in that comprising following content:
(1) pattern that adopts the automatic switchover of hardware circuit steering logic unit to receive or send data is carried out data transmission;
(2) in transmitting procedure, adopt the FIFO mode to realize data buffer storage, receive FIFO and send FIFO independent control respectively;
(3) while receiving data, byte of every correct reception produces once interrupts, and the data while sending data in all buffer memorys are all produced and interrupt after correct transmission;
It is characterized in that, when data transmission, ware circuit mode control logic unit is defaulted as receiving mode, when receiving data, hardware circuit receives the steering logic unit and can receive one or more data simultaneously, and while sending data, smart card software can write the one or more byte datas of FIFO at every turn.
2. a kind of method that improves communication rate of contact-type intelligent card as claimed in claim 1, it is characterized in that: in process of caching, smart card software is disposable all writes the data of required transmission buffer memory or writes buffer memory in batches.
CN2010100224875A 2010-01-07 2010-01-07 Method for improving communication rate of contact-type intelligent card Active CN102122362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010100224875A CN102122362B (en) 2010-01-07 2010-01-07 Method for improving communication rate of contact-type intelligent card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100224875A CN102122362B (en) 2010-01-07 2010-01-07 Method for improving communication rate of contact-type intelligent card

Publications (2)

Publication Number Publication Date
CN102122362A CN102122362A (en) 2011-07-13
CN102122362B true CN102122362B (en) 2013-12-11

Family

ID=44250916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010100224875A Active CN102122362B (en) 2010-01-07 2010-01-07 Method for improving communication rate of contact-type intelligent card

Country Status (1)

Country Link
CN (1) CN102122362B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166864B (en) * 2014-08-01 2017-12-12 陈志河 Communication means and system between a kind of intelligent read-write device and smart card
CN110413540B (en) * 2019-06-28 2021-07-16 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for FPGA data caching

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6105874A (en) * 1997-10-22 2000-08-22 U.S. Philips Corporation Dual-mode data carrier and circuit for such a data carrier with simplified data transfer means
CN101236539A (en) * 2007-01-29 2008-08-06 瑞昱半导体股份有限公司 Card-reading device integration -type control chip and data access method
CN101354752A (en) * 2008-09-12 2009-01-28 普天信息技术研究院有限公司 Method and system for transporting information of smart card module

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006021087A1 (en) * 2006-05-05 2007-11-08 Giesecke & Devrient Gmbh Simultaneous interface operation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6105874A (en) * 1997-10-22 2000-08-22 U.S. Philips Corporation Dual-mode data carrier and circuit for such a data carrier with simplified data transfer means
CN101236539A (en) * 2007-01-29 2008-08-06 瑞昱半导体股份有限公司 Card-reading device integration -type control chip and data access method
CN101354752A (en) * 2008-09-12 2009-01-28 普天信息技术研究院有限公司 Method and system for transporting information of smart card module

Also Published As

Publication number Publication date
CN102122362A (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN107092949B (en) Smart card performance enhancement circuit and system
CN103077365B (en) The RFID reader of compatible Type A and Type B agreement
CN103414497B (en) For communication between electronic by the control method forwarded and corresponding equipment
WO2005086407A1 (en) Reset circuit, data carrier and communication device
CN105574456A (en) RIFD reader
CN101730295B (en) Coordination processing method for application collision of radio frequency SIM card interface
US8001292B2 (en) Data transfer controlling device and IC card
CN102122362B (en) Method for improving communication rate of contact-type intelligent card
CN102546107A (en) Method, system and adapter card for data transmission between contact card and card reading device
CN102035576B (en) Data transmission method
EP2830000B1 (en) Wireless card reader and method for storing data
CN101354752B (en) Method and system for transporting information of smart card module
CN101561894A (en) Smart card and method for determining communication speed of second controller
CN101477637B (en) Data communication method, system and smart card reader/writer
MY184196A (en) Smart chip and method for smart chip data communications
KR101803286B1 (en) Smartcard Interface Conversion Device, Embedded system having the same device and Method used in the same device
US20200341917A1 (en) Exchange of data within a dynamic transponder, and corresponding transponder
CN101882231B (en) RFID (Radio Frequency Identification Devices) reader-writer and data transmission method thereof
CN201004233Y (en) A RF card reading device with RS485 interface
CN103744807B (en) Storage card based on PLD accesses control system
CN201111065Y (en) IC card read-write controller based on 51 SCM
CN201465131U (en) Multi-standard radio frequency card read-write device capable of updating program in system
CN101702195B (en) Timing sequence control method and card reader
CN201886465U (en) Interface equipment and device provided with same
CN204559795U (en) There is the Set Top Box of safety certification and anti-collision function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN CO., LTD

Free format text: FORMER OWNER: SHANGHAI HUAHONG INTEGRATED CIRCUIT CO., LTD.

Effective date: 20121225

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 201203 PUDONG NEW AREA, SHANGHAI TO: 100080 HAIDIAN, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20121225

Address after: 100080 Beijing City, Haidian District Zhongguancun Road No. 66, building 1, 12 layers of 1501-1510

Applicant after: Beijing Huahong Integrated Circuit Design Co., Ltd.

Address before: Shanghai city 201203 Bibo Road No. 39 Lane 572

Applicant before: Shanghai Huahong Integrated Circuit Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 100089 Floor 12 1506, Building A 1, 66 Zhongguancun East Road, Haidian District, Beijing

Patentee after: Beijing Huahong Integrated Circuit Design Co., Ltd.

Address before: 100080 Beijing City, Haidian District Zhongguancun Road No. 66, building 1, 12 layers of 1501-1510

Patentee before: Beijing Huahong Integrated Circuit Design Co., Ltd.