CN102122362A - 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
CN102122362A
CN102122362A CN2010100224875A CN201010022487A CN102122362A CN 102122362 A CN102122362 A CN 102122362A CN 2010100224875 A CN2010100224875 A CN 2010100224875A CN 201010022487 A CN201010022487 A CN 201010022487A CN 102122362 A CN102122362 A CN 102122362A
Authority
CN
China
Prior art keywords
data
fifo
transmission
intelligent card
improves
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.)
Granted
Application number
CN2010100224875A
Other languages
Chinese (zh)
Other versions
CN102122362B (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
Shanghai Huahong Integrated Circuit 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 Shanghai Huahong Integrated Circuit Co Ltd filed Critical Shanghai Huahong Integrated Circuit 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 the contact intelligent card traffic rate
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 the contact intelligent card traffic rate.
Background technology
IC-card (integrated circuit card) or title smart card are a kind of plastic cards of credit card sized size, encapsulated in the card to comprise 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 are strong, and antifalsification is good, and the storage data capacity is big, safe, and application apparatus and system network environment cost are low, 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 subjected to people's generally attention, replaces magnetic card and other data card in growing field, 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) Ding Yi Contact Type Ic Card standard, 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 the application of reality, contact intelligent card adopts traditional realization mechanism more, the problem that exists a lot of software and hardwares to cooperate, and its communication digit rate can only reach the speed of 112kbps at most, the demand of data transmission during this situation has influenced greatly and used.
Summary of the invention
The object of the invention provides a kind of method that improves the contact intelligent card traffic rate, based on the communications protocol of ISO/IEC7816-3 standard, improves its communication digit rate, and ideal value reaches 625kbps, satisfies demands of applications.
A kind of method that improves the contact intelligent card traffic rate comprises following content:
(1) pattern that adopts the automatic switchover of hardware circuit steering logic unit to receive or send data is advanced
The line data transmission;
(2) adopt the FIFO mode to realize metadata cache in the transmission course, receive FIFO and send FIFO
Independent respectively control;
When (3) receiving data, byte of every correct reception produces once interrupts, and sends data time institute
There are the data in the buffer memory all to be produced interruption by the correct back that sends.
When data transmission procedure, acquiescence is in receiving mode.When having data to send, by software setting data are write transmission FIFO (First-in First-out, first in first out), the mode control logic unit automatically switches to sending mode, by sending the steering logic unit data among the FIFO is sent.After successfully sending interior all data of buffer memory, the mode control logic unit can switch to receiving mode in the stand-by period.When receiving the steering logic unit and receive new data, then it is write and receive FIFO and handle by interrupting the annoyware program.
Data are being carried out in 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 the content of determining 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.Under the prerequisite that reduces the hardware design resource as far as possible, can suitably increase the size of FIFO, give the processing time of software abundance.Receive FIFO and send the independent respectively control of FIFO, hardware circuit can receive a plurality of data when receiving, and software can write many byte datas of FIFO at every turn when sending data, can not produce conflict mutually between the data of reception and the data of transmission.
When receiving data, byte of whenever correct reception produces once interrupts, generation at once after the judgement parity check bit is correct.Software then can have more 2 bit times and carry out data processing; When sending data, data in all buffer memorys are all produced after correct the transmission again interrupts, smart card software can disposablely all write buffer memory to all data that need send, perhaps disposablely can't all write fashionable can in batches writing, send the next group data again after a collection of being sent completely at every turn.
Adopt implementation method provided by the invention, the communication speed of contact intelligent card can not be subjected to using in the card influence of software processes speed, can increase the time of software processes in the card like this, can effectively improve the stability and the treatment effeciency of smart card application software.
Description of drawings
A kind of method synoptic diagram that improves the contact intelligent card traffic rate of Fig. 1
Hardware interface synoptic diagram in Fig. 2 ISO/IEC 7816 standards
Communication character format synoptic 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:
The character transmission form of Fig. 3 for stipulating in ISO/IEC 7816 standards, each byte transmission comprises a start bit, 8 data bit, parity check bit, and stand-by period.Wherein start bit is the low level of a bit time, and the stand-by period is the high level of 2 bit times, and sending a required time of complete bytes is 12 bit times.The transmission beginning of start bit representative data, the take over party begins to receive data after receiving start bit, and according to the correctness of parity check bit verification msg, retransmits as incorrect then the requirement.
Fig. 1 is the method synoptic diagram of raising contact intelligent card traffic rate provided by the present invention, Fig. 2 comprises mode control logic unit, transmission and reception steering logic unit, transmission and reception FIFO, input/output port and CPU element for the module diagram of ISO/IEC 7816 standard interfaces that relate among the present invention.The mode control logic unit is used for the switching of receiving mode and sending mode, switches to sending mode when having the data that are not sent out in sending FIFO; After data among 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 among the reception FIFO, send FIFO and receive FIFO respectively as the metadata cache under transmission and the receiving mode, independent control.
The size of FIFO determines according to system requirements, according to stipulating in ISO/IEC 7816 standards that the order length of each communication is 5 bytes, and the longest 256 bytes of data length, FIFO can be decided to be the arbitrary value in 5~256 bytes as required.Under the prerequisite that reduces hardware resource as far as possible, can suitably increase the size of FIFO, give the processing time of the interior software of smart card with abundance.
When Data Receiving, produce once and interrupt whenever correctly receiving byte, judging that parity check bit produces after correct at once, therefore make software have more 2 bit times and carry out other processing.When sending data, treat to produce again after data in all buffer memorys all correctly are sent completely and interrupt, smart card software can disposablely all write buffer memory to all data that need send 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 the time of smart card software processes like this, help to improve the stability and the treatment effeciency of software.

Claims (5)

1. method that improves the contact intelligent card traffic rate 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 transmission course, adopt the FIFO mode to realize metadata cache, receive FIFO and send the independent respectively control of FIFO;
When (3) receiving data, byte of every correct reception produces once interrupts, and the data when sending data in all buffer memorys are all produced by correct transmission back interrupts.
2. a kind of method that improves the contact intelligent card traffic rate as claimed in claim 1 is characterized in that: described hardware circuit comprises mode control logic unit, transmission and reception steering logic unit, transmission and reception FIFO, input/output port and CPU element.
3. a kind of method that improves the contact intelligent card traffic rate as claimed in claim 1 is characterized in that: be that ware circuit is defaulted as receiving mode in data transmission.
4. a kind of method that improves the contact intelligent card traffic rate as claimed in claim 1, it is characterized in that: hardware circuit can receive one or more data simultaneously when receiving data, and smart card software can write the one or more byte datas of FIFO at every turn when sending data.
5. a kind of method that improves the contact intelligent card traffic rate as claimed in claim 1 is characterized in that: smart card software can disposablely all write the data of required transmission buffer memory or write buffer memory in batches in the process of caching.
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 true CN102122362A (en) 2011-07-13
CN102122362B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166864A (en) * 2014-08-01 2014-11-26 北京民芯科技有限公司 Smart reader-writer and smart card communication method and system
CN110413540A (en) * 2019-06-28 2019-11-05 苏州浪潮智能科技有限公司 A kind of method, system, equipment and the storage medium of FPGA data caching

Citations (4)

* 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
US20090137276A1 (en) * 2006-05-05 2009-05-28 Giesecke & Devrient Gmbh Simultaneous interface use

Patent Citations (4)

* 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
US20090137276A1 (en) * 2006-05-05 2009-05-28 Giesecke & Devrient Gmbh Simultaneous interface use
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

Cited By (4)

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

Also Published As

Publication number Publication date
CN102122362B (en) 2013-12-11

Similar Documents

Publication Publication Date Title
EP2681694B1 (en) Smartcard performance enhancement circuits and systems
CN103077365A (en) RFID (radio frequency identification) reader compatible with Type A protocol and Type B protocol
CN101739583A (en) Radio frequency SIM card, radio frequency card reader and magnetic induction control method for radio frequency communication
CN103414497B (en) For communication between electronic by the control method forwarded and corresponding equipment
US9703996B2 (en) Method for managing communication between an electronic device, for example a contactless chip card, and a communication apparatus, for example a reader, and corresponding electronic device
US8001292B2 (en) Data transfer controlling device and IC card
CN102546107A (en) Method, system and adapter card for data transmission between contact card and card reading device
CN102122362B (en) Method for improving communication rate of contact-type intelligent card
CN101499124B (en) Method, system and apparatus for read-write operation of smart card
EP2830000B1 (en) Wireless card reader and method for storing data
CN101477637B (en) Data communication method, system and smart card reader/writer
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
MY184196A (en) Smart chip and method for smart chip data communications
US8203469B2 (en) Signal encoding apparatus and method of radio frequency identification reader
EP2299383B1 (en) Mobile electronic device and IC card with response slot priority setting in anti-collision
CN104881694A (en) Data read-write method, terminal and system based on RFID double protocols
CN101882231B (en) RFID (Radio Frequency Identification Devices) reader-writer and data transmission method thereof
CN106372287A (en) Design method and circuit for improving utilization rate of 14443 buffer
CN111865362B (en) Data exchange in dynamic transponders, and corresponding transponder
CN201111065Y (en) IC card read-write controller based on 51 SCM
CN201957055U (en) Multimedia information co-processing equipment based on SDIO (safety digital input and output) interface
CN202257619U (en) Wireless identification device between induction heating device and cooker
CN115278627A (en) Near field communication method and near field communication device
CN102082798A (en) SDIO (secure digital input output) interface based multimedia information coprocessing equipment and communication method thereof

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.