CN101499124B - Method, system and apparatus for read-write operation of smart card - Google Patents

Method, system and apparatus for read-write operation of smart card Download PDF

Info

Publication number
CN101499124B
CN101499124B CN2008102473305A CN200810247330A CN101499124B CN 101499124 B CN101499124 B CN 101499124B CN 2008102473305 A CN2008102473305 A CN 2008102473305A CN 200810247330 A CN200810247330 A CN 200810247330A CN 101499124 B CN101499124 B CN 101499124B
Authority
CN
China
Prior art keywords
clock frequency
smart card
read
write device
described smart
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.)
Expired - Fee Related
Application number
CN2008102473305A
Other languages
Chinese (zh)
Other versions
CN101499124A (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 Watchdata Co ltd
Original Assignee
Beijing WatchData System 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 WatchData System Co Ltd filed Critical Beijing WatchData System Co Ltd
Priority to CN2008102473305A priority Critical patent/CN101499124B/en
Publication of CN101499124A publication Critical patent/CN101499124A/en
Application granted granted Critical
Publication of CN101499124B publication Critical patent/CN101499124B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Credit Cards Or The Like (AREA)

Abstract

The invention provides a method, a system and a device for processing reading-writing to an intelligent card which belong to the electronic technique field. The method, the system and the device are used for increasing reading-writing speed to a contact type intelligent card using ISO7816-3 agreement by an intelligent card reading-writing device. An embodiment of the invention includes steps as follows: the intelligent card reading-writing device confirms clock frequency supported by the intelligent card; the intelligent card reading-writing device selects one time frequency from the confirmed clock frequency, the selected clock frequency is more than present clock frequency of the intelligent card; the intelligent card reading-writing device uses the selected clock frequency for processing reset operation to the intelligent card, present clock frequency of the intelligent card is the selected clock frequency after the reset operation successful; the intelligent card reading-writing device processes reading and writing operation to the intelligent card. The method using the embodiment provided by the invention can increase reading-writing operation efficiency and user's experience.

Description

A kind of mthods, systems and devices that smart card carried out read-write operation
Technical field
The present invention relates to electronic technology field, particularly a kind of mthods, systems and devices that smart card carried out read-write operation.
Background technology
Along with the development of smart card techniques, the applied environment of smart card more and more widely because the applied environment of contact intelligent card is extensive, thus also more and more higher to the requirement of the memory capacity of contact intelligent card and read or write speed.
According to the ISO7816-3 standard, operate by the I/O interface between smart card read-write device and the contact intelligent card.Capacity for the contact intelligent card that adopts the ISO7816-3 agreement is generally 8K, 32K or 64K at present.Along with the development of technology, the contact intelligent card of the above capacity of 1M has appearred.
But the ISO7816-3 agreement is that the contact intelligent card of 8K, 32K or 64K is formulated with reference to capacity, that is to say, smart card read-write device is when carrying out read-write operation to the contact intelligent card that adopts the ISO7816-3 agreement, the read or write speed of I/O interface is slow, only is applicable to the contact intelligent card that memory capacity is smaller.Contact intelligent card for the above capacity of 1M just requires a great deal of time when reading and writing.
For addressing this problem, at present Ying Jingyou employing USB (Universal Serial BUS, USB (universal serial bus)) mode of high speed communication interface such as interface and SD (Secure Digital safe digital) card is read and write smart card, but this mode and be not suitable for the bigger contact intelligent card of memory capacity that adopts the ISO7816-3 agreement.
Even it is less that some application scenario relates to the smart card capacity, based on special application requirements, access time has been proposed harsh requirement, such as public transport, ETC (Electronic Toll Collection, electronic charging system without parking) etc. all used contact intelligent card as authentication module, and require access time very short, therefore adopt the read-write of the contact intelligent card of ISO7816-3 agreement to become the speed bottle-neck of above-mentioned occasion.
In sum, smart card read-write device is slow to the speed that the contact intelligent card that adopts the ISO7816-3 agreement carries out read-write operation at present, needs the long time of cost to carry out read-write operation.
Summary of the invention
The embodiment of the invention provides a kind of mthods, systems and devices that smart card carried out read-write operation, in order to improve smart card read-write device carries out read-write operation to the contact intelligent card that adopts the ISO7816-3 agreement speed, thereby reduced the time of read-write operation, improved the efficient of read-write operation.
The embodiment of the invention provides, and a kind of method that smart card is carried out read-write operation comprises:
Smart card read-write device is determined the clock frequency that smart card can be supported;
Described smart card read-write device is selected a clock frequency from the described clock frequency of determining, the clock frequency of described selection is greater than the current clock frequency of described smart card;
Described smart card read-write device adopts the clock frequency of described selection that described smart card is carried out reset operation, and the current clock frequency of the described smart card behind the described reset operation is the clock frequency of described selection;
Described smart card read-write device carries out read-write operation to described smart card.
The embodiment of the invention provides a kind ofly carries out the system of read-write operation to smart card, comprises smart card, and this system also comprises:
Smart card read-write device, be used for the clock frequency that definite described smart card can be supported, from the described clock frequency of determining, select a clock frequency, the clock frequency of described selection is greater than the current clock frequency of described smart card, adopt the clock frequency of described selection that described smart card is carried out reset operation, the current clock frequency of described smart card behind the described reset operation is the clock frequency of described selection, and described smart card is carried out read-write operation.
A kind of smart card read-write device that the embodiment of the invention provides comprises:
The clock determination module is used for the clock frequency of determining that smart card can be supported;
Select module, be used for selecting a clock frequency from the described clock frequency of determining, the clock frequency of described selection is greater than the current clock frequency of described smart card;
The clock adjustment module is used to adopt the clock frequency of described selection that described smart card is carried out reset operation, and the current clock frequency of the described smart card behind the described reset operation is the clock frequency of described selection;
Processing module is used for described smart card is carried out read-write operation.
Embodiment of the invention smart card read-write device is determined the clock frequency that smart card can be supported; Described smart card read-write device is selected a clock frequency from the described clock frequency of determining, the clock frequency of described selection is greater than the current clock frequency of described smart card; Described smart card read-write device adopts the clock frequency of described selection that described smart card is carried out reset operation, and the current clock frequency of the described smart card behind the described reset operation is the clock frequency of described selection; Described smart card read-write device carries out read-write operation to described smart card.Owing to can improve the clock frequency of smart card, thereby improved the communication speed of I/O interface between smart card read-write device and the contact intelligent card, reduced the time of read-write operation, the efficient and the user experience of read-write operation have been improved, and smart card read-write device can be adjusted the clock frequency of contact intelligent card, thereby offer the higher clock frequency of contact intelligent card, and then adapted to the requirement of smart card techniques development, for the contact intelligent card that adopts clock frequency as system clock, can also improve the speed of this class contact intelligent card deal with data, since the embodiment of the invention can the free adjustment smart card clock frequency, thereby can enlarge the suitable environment of smart card, be beneficial to the popularization and the development of smart card more.
Description of drawings
Fig. 1 carries out the system architecture synoptic diagram of read-write operation to smart card for the embodiment of the invention;
Fig. 2 is the structural representation of embodiment of the invention smart card read-write device;
Fig. 3 is the synoptic diagram of embodiment of the invention clock adjustment module output clock frequency;
Fig. 4 is the synoptic diagram of embodiment of the invention read-write operation system;
Fig. 5 carries out the method flow synoptic diagram of read-write operation to smart card for the embodiment of the invention;
The method flow synoptic diagram that Fig. 6 switches for embodiment of the invention clock frequency.
Embodiment
Embodiment of the invention smart card read-write device can be from the clock frequency that smart card is supported, select a clock frequency greater than the current clock frequency of smart card, and smart card is carried out reset operation according to the clock frequency of selecting, adjust the clock frequency of clock frequency for selecting of smart card, owing to can improve the clock frequency of smart card, thereby improved the communication speed of I/O interface between smart card read-write device and the contact intelligent card, reduced the time of read-write operation.
Wherein, the current clock frequency of described smart card is the clock frequency that the smart card acquiescence is supported, is highest frequency or the following clock frequency that can support by ISO7816-3 protocol-intelligent card.
As press the ISO7816-3 agreement, all smart cards should all be supported the clock frequency of 4M, so be generally 4M frequency or following clock frequency (3.579M commonly used) for the clock frequency of the acquiescence support of the smart card that adopts the ISO7816-3 agreement.
Wherein, the embodiment of the invention is applicable to can be by adjusting clock frequency, improve the smart card read-write device and the smart card of communication speed, such as the contact intelligent card of smart card read-write device that reads the contact intelligent card that adopts the ISO7816-3 agreement and employing ISO7816-3 agreement.
Below in conjunction with Figure of description the embodiment of the invention is described in further detail.
As shown in Figure 1, the embodiment of the invention comprises the system that smart card carries out read-write operation: smart card read-write device 10 and smart card 20.
Smart card read-write device 10, be used for the clock frequency that definite smart card 20 can be supported, from the clock frequency of determining, select a clock frequency, adopt the clock frequency of selecting that smart card 20 is carried out reset operation, make the current clock frequency of clock frequencies of smart card 20 behind the reset operation, smart card 20 is carried out read-write operation for selecting.
Wherein, the clock frequency of selection is greater than the current clock frequency of smart card 20.
In specific implementation process, smart card read-write device 10 need carry out alternately with a lower clock frequency and smart card 20 (if the clock frequency of smart card read-write device 10 is higher than 20 the highest clock frequencies of energy support of smart card, then might cause and to carry out alternately with smart card 20), so can (clock frequency such as the acquiescence support of the smart card that adopts the ISO7816-3 agreement be generally 3.579M for smart card read-write device 10 is provided with an original clock frequency, original clock frequency that then can smart card read-write device 10 is set to 3.579M), guarantee that original clock frequency can be suitable for all smart cards 20.
Smart card read-write device 10 can adopt manual mode or automatic mode to determine the clock frequency that smart card can be supported then.If adopt automatic mode then smart card read-write device 10 carries out determining the clock frequency that smart card 20 can be supported alternately according to original clock frequency and smart card 20.
Last smart card read-write device 10 carries out reset operation according to original clock frequency to smart card 20.
Smart card 20 is used for carrying out read-write operation with smart card read-write device 10.
In specific implementation process, smart card read-write device 10 is after carrying out reset operation to smart card 20, smart card 20 is according to the clock frequency of storage and the corresponding relation of I/O interface rate, determine the I/O interface rate of the clock frequency correspondence of selection, and the I/O interface rate that self is current is adjusted into definite I/O interface rate.
After smart card read-write device 10 is selected a clock frequency, smart card 20 is carried out before the read-write operation, equally also need according to the clock frequency of storage and the corresponding relation of I/O interface rate, determine the I/O interface rate of the clock frequency correspondence of selection, and the I/O interface rate that self is current is adjusted into definite I/O interface rate.
The corresponding relation of clock frequency and I/O interface rate is to predesignate in the ISO7816-3 agreement.Certainly, also can set the corresponding relation of clock frequency and I/O interface rate as required, but the clock frequency that must guarantee smart card read-write device 10 and smart card 20 storages is identical with the corresponding relation of I/O interface rate, so just can make smart card read-write device 10 and smart card 20 carry out read-write operation by the I/O interface of same rate mutually.
As shown in Figure 2, embodiment of the invention smart card read-write device comprises: clock determination module 100, selection module 110, clock adjustment module 120 and processing module 130.
Clock determination module 100 is used for the clock frequency of determining that smart card can be supported.
Wherein, clock determination module 100 can adopt manual mode or automatic mode to determine the clock frequency that smart card can be supported.
If manual mode then can obtain the clock frequency that smart card can be supported from host computer;
The clock frequency that smart card in the host computer can be supported can be input in the host computer manually.
If automatic mode, then can be according to the corresponding relation of signature identification and clock frequency, the clock frequency of determining to receive, the clock frequency that the clock frequency of determining can be supported as smart card from the signature identification correspondence of smart card;
Signature identification can be the historical byte of smart card repositioning information, also can be the numeral of distinguishing smartcard types, information such as letter;
The corresponding relation of signature identification and clock frequency is predefined, can store into as required in the smart card read-write device, also can store in other entities, and the chip cards read-write equipment uses;
Then smart card when mutual, is initiatively reporting smart card read-write device with signature identification with smart card read-write device.
Concrete which kind of mode that adopts can be set as required.
Need to prove that present embodiment is not limited to above-mentioned dual mode, anyly can determine that the mode of the clock frequency that smart card can be supported all is applicable to present embodiment by structure.
Select module 110, be used for selecting a clock frequency from the clock frequency that clock determination module 100 is determined.
The clock frequency of selecting is greater than the current clock frequency of smart card.
In specific implementation process, the maximum clock frequency that maximum clock frequency that smart card can support can be supported greater than smart card read-write device might appear, then select module 110 also to need to select according to the maximum clock frequency that self can support, the clock frequency that clock frequency after guaranteeing to select reports greater than smart card, and be not higher than the maximum clock frequency that self can support.
Clock adjustment module 120 is used to adopt the clock frequency of selecting module 110 to select that smart card is carried out reset operation, makes the current clock frequency of clock frequency for selecting module 110 to select of smart card behind the reset operation.
Wherein, clock adjustment module 120 will select the clock frequency of module 110 selections to export to smart card;
Then smart card carries out the self-adaptation adjustment according to the clock frequency of receiving, the clock frequency that self is current is adjusted into the clock frequency of receiving, smart card is according to adjusted clock frequency then, the speed of I/O interface to self is also carried out the self-adaptation adjustment, makes the I/O interface rate can meet adjusted clock frequency.
In specific implementation process, the clock frequency that clock adjustment module 120 is exported to smart card can be that system clock frequency is carried out frequency division, forms and the identical clock frequency of selecting of clock frequency size; It also can be an extra big or small identical clock frequency of clock frequency with selection.
If system clock frequency is carried out frequency division, the clock frequency of formation, then the process of clock adjustment module 120 output clock frequencies can be referring to Fig. 3.
The system frequency of supposing smart card read-write device is that the clock to the 8M crystal oscillator carries out frequency multiplication and forms the highest 9 frequencys multiplication that are set to of frequency parameter.
Then the clock of 8M crystal oscillator earlier carries out process of frequency multiplication by the frequency multiplication module (frequency parameter PLL can set as required, such as X2, X3......X9), then system clock is exported to clock adjustment module 120, clock adjustment module 120 is according to the clock frequency of selecting module 110 to select, (divide ratio Prescaler can set as required according to divide ratio, such as 2,4,6,8.....20), system clock is carried out frequency division handle, thereby form and the identical clock frequency of selecting of clock frequency size.
Processing module 130 is used for smart card is carried out read-write operation.
Because after the clock frequency of smart card is adjusted, make the I/O interface rate also change, in order to make smart card read-write device that smart card is carried out read-write operation, I/O interface rate between smart card read-write device and the smart card is consistent, and then the smart card read-write device of the embodiment of the invention can further include: rate adaptation module 140.
Rate adaptation module 140, be used for after clock determination module 100 is selected a clock frequency, 130 pairs of smart cards of processing module carry out before the read-write operation, corresponding relation according to clock frequency and I/O interface rate, determine the I/O interface rate of the clock frequency correspondence of selection, the I/O interface rate that self is current is adjusted into definite I/O interface rate.
In specific implementation process, rate adaptation module 140 is after selecting module 110 to select a clock frequency, also can carry out initialization operation, then the clock frequency of the current clock frequency of the smart card read-write device behind the initialization operation for selecting module 110 to select to the smart card read-write device at self place.
Clock frequency in smart card and the smart card read-write device and I/O interface rate all are consistent like this, and clock frequency is all corresponding with the I/O interface rate has improved, thereby can accelerate read or write speed.
As shown in Figure 4, embodiment of the invention read-write operation system comprises:
Host computer 1, smart card read-write device 10 and smart card 20.
Wherein, host computer 1 is connected with smart card read-write device 10 by the USB communication module, is undertaken mutual by APDU (Application protocol data unit, application layer data) order.
The clock frequency that clock determination module 100 in the smart card read-write device 10 selects module 110 to select by the control signal notice.
Smart card read-write device 10 sends reset signal by (RST) line that resets to smart card 20.
Smart card read-write device 10 is exported to smart card 20 by clock (CLK) line with the clock frequency of selecting.
Carry out read-write operation by the I/O interface between smart card read-write device 10 and the smart card 20.
As shown in Figure 5, the embodiment of the invention comprises the method that smart card carries out read-write operation:
Step 500, smart card read-write device are determined the clock frequency that smart card can be supported.
Wherein, clock determination module 100 can adopt manual mode or automatic mode to determine the clock frequency that smart card can be supported.
If manual mode then can obtain the clock frequency that smart card can be supported from host computer;
The clock frequency that smart card in the host computer can be supported can be input in the host computer manually.
If automatic mode, then can be according to the corresponding relation of signature identification and clock frequency, the clock frequency of determining to receive, the clock frequency that the clock frequency of determining can be supported as smart card from the signature identification correspondence of smart card;
Signature identification can be the historical byte of smart card repositioning information, also can be the numeral of distinguishing smartcard types, information such as letter;
The corresponding relation of signature identification and clock frequency is predefined, can store into as required in the smart card read-write device, also can store in other entities, and the chip cards read-write equipment uses;
Then smart card when mutual, is initiatively reporting smart card read-write device with signature identification with smart card read-write device.
Concrete which kind of mode that adopts can be set as required.
Need to prove that present embodiment is not limited to above-mentioned dual mode, anyly can determine that the mode of the clock frequency that smart card can be supported all is applicable to present embodiment by structure.
Step 501, smart card read-write device are selected a clock frequency from the clock frequency of determining.
The clock frequency of selecting is greater than the current clock frequency of smart card.
Wherein, smart card is with smart card read-write device when mutual, and the smart card clock frequency that self is current reports smart card read-write device; Smart card read-write device is selected the clock frequency of a clock frequency that reports greater than smart card from the clock frequency of determining.
In specific implementation process, the maximum clock frequency that maximum clock frequency that smart card can support can be supported greater than smart card read-write device might appear, then smart card read-write device also needs to select according to the maximum clock frequency that self can support, the clock frequency that clock frequency after guaranteeing to select reports greater than smart card, and be not higher than the maximum clock frequency that self can support.
Step 502, smart card read-write device adopt the clock frequency of selecting that smart card is carried out reset operation, make that the current clock frequency of smart card behind the reset operation is the clock frequency of selecting.
Step 503, smart card read-write device carry out read-write operation to smart card.
Wherein, in the step 502, smart card read-write device is that smart card read-write device is exported to smart card with the clock frequency of selecting to the mode that smart card carries out reset operation.
In specific implementation process, the clock frequency that smart card read-write device is exported to smart card can be that system clock frequency is carried out frequency division, forms and the identical clock frequency of selecting of clock frequency size; It also can be an extra big or small identical clock frequency of clock frequency with selection.
Then smart card carries out the self-adaptation adjustment according to the clock frequency of receiving, the clock frequency that self is current is adjusted into the clock frequency of receiving, smart card is according to the corresponding relation of clock frequency and I/O interface rate, determine the I/O interface rate of the clock frequency correspondence of selection, the I/O interface rate that self is current is adjusted into definite I/O interface rate.
Need to prove, the mode of embodiment of the invention reset operation is not limited to above-described the clock frequency of selecting be exported to the mode of smart card, and other can guarantee that the current clock frequency of smart card behind the reset operation all is suitable for present embodiment for the reset operation mode of the clock frequency selected.
Because after the clock frequency of smart card is adjusted, make the I/O interface rate also change, in order to make smart card read-write device that smart card is carried out read-write operation, I/O interface rate between smart card read-write device and the smart card is consistent, then after the step 501, can further include before the step 503:
Smart card read-write device need determine the I/O interface rate of the clock frequency correspondence of selection, and the I/O interface rate that self is current be adjusted into definite I/O interface rate according to the clock frequency of storage and the corresponding relation of I/O interface rate.
The corresponding relation of clock frequency and I/O interface rate is to predesignate in the ISO7816-3 agreement.Certainly, also can set the corresponding relation of clock frequency and I/O interface rate as required, but the clock frequency that must guarantee smart card read-write device and smart cards for storage is identical with the corresponding relation of I/O interface rate, so just can make smart card read-write device and smart card carry out read-write operation by the I/O interface of same rate mutually.
In specific implementation process, after smart card read-write device has been selected a clock frequency, also can carry out initialization operation, then the clock frequency of the current clock frequency of the smart card read-write device behind the initialization operation for selecting to self.
Clock frequency in smart card and the smart card read-write device and I/O interface rate all are consistent like this, and clock frequency is all corresponding with the I/O interface rate has improved, thereby can accelerate read or write speed.
Describe with specific embodiment below:
Suppose to adopt the smart card read-write device of 3.579M clock frequency, when TA1=0x94, PPS (Protocol and parameters select, card is consulted with card reader) the actual communication speed 55800bps in back.
Suppose by 8 data bit of each byte, a start bit, two position guard times amount to 12 bytes and calculate between position of rest and the byte, by 255 byte communication times are:
(255×12)÷55800=54.84ms。
If the clock frequency of contact intelligent card read-write equipment and card reader is adjusted to 6M, when TA1=0x94, actual communication speed 55800 * 6 ÷ 3.579=93545.7bps behind the PPS.
Suppose by 8 data bit of each byte, a start bit, two position guard times amount to 12 bytes and calculate between position of rest and the byte, by 255 byte communication times are:
(255×12)÷93545.7=32.7ms。
So after the embodiment of the invention was increased to 6M with the clock frequency of smart card read-write device and smart card by 3.579M, the application communication process of same data volume can be saved 54.84ms-32.7ms=22.1ms.
As shown in Figure 6, the method for embodiment of the invention clock frequency switching comprises the following steps:
Step 600, the original clock frequency of smart card read-write device is set.
In specific implementation process, smart card read-write device need carry out (supporting maximum clock frequency if the clock frequency of smart card read-write device is higher than smart card alternately with a lower clock frequency and smart card, then might cause and to carry out alternately with smart card), so can an original clock frequency (standard time clock frequency be set for smart card read-write device, as 3.579M), guarantee that original clock frequency can be suitable for all smart cards.
Step 601, smart card read-write device carry out determining the clock frequency that smart card is current alternately with the original clock frequency and the smart card that are provided with.
Step 602, smart card report smart card read-write device with the signature identification of self.
Step 603, smart card read-write device be according to the corresponding relation of signature identification and clock frequency, determines the clock frequency of the signature identification correspondence received.
Whether have greater than the current clock frequency of smart card in the clock frequency that step 604, smart card read-write device judgement are determined, if then execution in step 605; Otherwise, execution in step 608.
Step 605, smart card read-write device are selected a clock frequency from the clock frequency of determining, the clock frequency of selection is greater than the current clock frequency of smart card.
Step 606, smart card read-write device are exported to smart card with the clock frequency of selecting, and self clock frequency is revised as the clock frequency of selection, and self I/O interface rate are revised as the I/O interface rate of the clock frequency correspondence of selection.
Step 607, smart card are carried out the self-adaptation adjustment according to the clock frequency of receiving, self clock frequency is revised as the clock frequency of receiving, and self I/O interface rate are revised as the I/O interface rate of the clock frequency correspondence of receiving.
Step 608, smart card read-write device carry out read-write operation by I/O interface and smart card.
From the foregoing description as can be seen: embodiment of the invention smart card read-write device is determined the clock frequency that smart card can be supported; Described smart card read-write device is selected a clock frequency from the described clock frequency of determining, the clock frequency of described selection is greater than the current clock frequency of described smart card; Described smart card read-write device adopts the clock frequency of described selection that described smart card is carried out reset operation, and the current clock frequency of the described smart card behind the described reset operation is the clock frequency of described selection; Described smart card read-write device carries out read-write operation to described smart card.Owing to can improve the clock frequency of smart card, thereby improved the communication speed of I/O interface between smart card read-write device and the contact intelligent card, reduced the time of read-write operation, the efficient and the user experience of read-write operation have been improved, and smart card read-write device can be adjusted the clock frequency of contact intelligent card, thereby offer the higher clock frequency of contact intelligent card, and then adapted to the requirement of smart card techniques development, for the contact intelligent card that adopts clock frequency as system clock, can also improve the speed of this class contact intelligent card deal with data, since the embodiment of the invention can the free adjustment smart card clock frequency, thereby can enlarge the suitable environment of smart card, be beneficial to the popularization and the development of smart card more.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (15)

1. one kind is carried out the method for read-write operation to smart card, it is characterized in that this method comprises:
Smart card read-write device is determined the clock frequency that smart card can be supported;
Described smart card read-write device is selected a clock frequency from the described clock frequency of determining, the clock frequency of described selection is greater than the current clock frequency of described smart card;
Described smart card read-write device adopts the clock frequency of described selection that described smart card is carried out reset operation, and the current clock frequency of the described smart card behind the described reset operation is the clock frequency of described selection;
Described smart card read-write device carries out read-write operation to described smart card.
2. the method for claim 1 is characterized in that, described smart card read-write device determines that the clock frequency that smart card can be supported comprises:
Described smart card read-write device obtains the clock frequency that described smart card can be supported from host computer; Or
Described smart card read-write device is according to the corresponding relation of signature identification and clock frequency, the clock frequency of determining to receive from the signature identification correspondence of described smart card, the clock frequency that the clock frequency of determining can be supported as described smart card.
3. the method for claim 1 is characterized in that, described smart card read-write device carries out reset operation to described smart card and comprises:
Described smart card read-write device is exported to described smart card with the clock frequency of described selection;
The described smart card clock frequency that self is current is adjusted into the clock frequency of described selection.
4. method as claimed in claim 3 is characterized in that, the clock frequency that the described smart card clock frequency that self is current is adjusted into described selection also comprises afterwards:
Described smart card is determined the I/O interface rate of the clock frequency correspondence of described selection according to the corresponding relation of clock frequency and I/O interface rate;
The described smart card I/O interface rate that self is current is adjusted into definite described I/O interface rate.
5. as the described method of the arbitrary claim of claim 1~4, it is characterized in that described smart card read-write device is selected after the clock frequency, described smart card read-write device carries out also comprising before the read-write operation to described smart card:
Described smart card read-write device is determined the I/O interface rate of the clock frequency correspondence of selection according to the corresponding relation of clock frequency and I/O interface rate;
The described smart card read-write device I/O interface rate that self is current is adjusted into definite described I/O interface rate.
6. one kind is carried out the system of read-write operation to smart card, comprises smart card, it is characterized in that this system also comprises:
Smart card read-write device, be used for the clock frequency that definite described smart card can be supported, from the described clock frequency of determining, select a clock frequency, the clock frequency of described selection is greater than the current clock frequency of described smart card, adopt the clock frequency of described selection that described smart card is carried out reset operation, the current clock frequency of described smart card behind the described reset operation is the clock frequency of described selection, and described smart card is carried out read-write operation.
7. system as claimed in claim 6 is characterized in that, described smart card read-write device comprises:
The clock determination module is used for the clock frequency of determining that described smart card can be supported;
Select module, be used for selecting a clock frequency from the described clock frequency of determining, the clock frequency of described selection is greater than the current clock frequency of described smart card;
The clock adjustment module is used to adopt the clock frequency of described selection that described smart card is carried out reset operation, and the current clock frequency of the described smart card behind the described reset operation is the clock frequency of described selection;
Processing module is used for described smart card is carried out read-write operation.
8. system as claimed in claim 7 is characterized in that, described clock determination module is used for:
From host computer, obtain the clock frequency that described smart card can be supported; Or
According to the corresponding relation of signature identification and clock frequency, the clock frequency of determining to receive, the clock frequency that the clock frequency of determining can be supported as described smart card from the signature identification correspondence of described smart card.
9. system as claimed in claim 7 is characterized in that, described clock adjustment module is used for:
The clock frequency of described selection is exported to described smart card;
Described smart card is used for:
The clock frequency that self is current is adjusted into the clock frequency of described selection.
10. system as claimed in claim 9 is characterized in that, described smart card also is used for:
According to the corresponding relation of clock frequency and I/O interface rate, determine the I/O interface rate of the clock frequency correspondence of described selection, the I/O interface rate that self is current is adjusted into definite described I/O interface rate.
11., it is characterized in that described smart card read-write device also comprises as the described system of the arbitrary claim of claim 7~10:
The rate adaptation module, be used for after described clock determination module is selected a clock frequency, described processing module is carried out before the read-write operation to described smart card, corresponding relation according to clock frequency and I/O interface rate, determine the I/O interface rate of the clock frequency correspondence of selection, the I/O interface rate that self is current is adjusted into definite described I/O interface rate.
12. a smart card read-write device is characterized in that, this smart card read-write device comprises:
The clock determination module is used for the clock frequency of determining that smart card can be supported;
Select module, be used for selecting a clock frequency from the described clock frequency of determining, the clock frequency of described selection is greater than the current clock frequency of described smart card;
The clock adjustment module is used to adopt the clock frequency of described selection that described smart card is carried out reset operation, and the current clock frequency of the described smart card behind the described reset operation is the clock frequency of described selection;
Processing module is used for described smart card is carried out read-write operation.
13. smart card read-write device as claimed in claim 12 is characterized in that, described clock determination module is used for:
From host computer, obtain the clock frequency that described smart card can be supported; Or
According to the corresponding relation of signature identification and clock frequency, the clock frequency of determining to receive, the clock frequency that the clock frequency of determining can be supported as described smart card from the signature identification correspondence of described smart card.
14. smart card read-write device as claimed in claim 12 is characterized in that, described clock adjustment module is used for:
The clock frequency of described selection is exported to described smart card.
15., it is characterized in that described smart card read-write device also comprises as the described smart card read-write device of the arbitrary claim of claim 12~14:
The rate adaptation module, be used for after described clock determination module is selected a clock frequency, described processing module is carried out before the read-write operation to described smart card, corresponding relation according to clock frequency and I/O interface rate, determine the I/O interface rate of the clock frequency correspondence of selection, the I/O interface rate that self is current is adjusted into definite described I/O interface rate.
CN2008102473305A 2008-12-30 2008-12-30 Method, system and apparatus for read-write operation of smart card Expired - Fee Related CN101499124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102473305A CN101499124B (en) 2008-12-30 2008-12-30 Method, system and apparatus for read-write operation of smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102473305A CN101499124B (en) 2008-12-30 2008-12-30 Method, system and apparatus for read-write operation of smart card

Publications (2)

Publication Number Publication Date
CN101499124A CN101499124A (en) 2009-08-05
CN101499124B true CN101499124B (en) 2010-11-03

Family

ID=40946194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102473305A Expired - Fee Related CN101499124B (en) 2008-12-30 2008-12-30 Method, system and apparatus for read-write operation of smart card

Country Status (1)

Country Link
CN (1) CN101499124B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639897B (en) * 2009-08-31 2011-08-17 北京飞天诚信科技有限公司 Method, device and system of operating overrange frequency conversion factor smart card
CN102147848A (en) * 2010-02-08 2011-08-10 智微科技股份有限公司 Method for setting operation frequency of storage card and related card reading device
CN101859395A (en) * 2010-05-14 2010-10-13 中兴通讯股份有限公司 Information transmission realization method and system, main control equipment and intelligent card
CN102737257A (en) * 2011-04-11 2012-10-17 国民技术股份有限公司 Method and apparatus for increasing smart card interface communication rate, and smart card
CN102440067A (en) * 2011-09-16 2012-05-02 华为终端有限公司 File read/write method and mobile terminal
CN105701057A (en) * 2016-01-14 2016-06-22 北京握奇数据系统有限公司 Communication rate matching method and system for 7816 interface and UART interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383525A (en) * 2000-04-20 2002-12-04 皇家菲利浦电子有限公司 Frequency sensor for each interface of data carrier
CN1591368A (en) * 2003-08-12 2005-03-09 三星电子株式会社 Memory controller, smart card and a method of controlling a read operation of a memory
US20070159747A1 (en) * 2005-12-22 2007-07-12 Infineon Technologies Ag Circuit arrangement and method for operating a circuit arrangement
CN101013477A (en) * 2007-02-05 2007-08-08 凤凰微电子(中国)有限公司 Unit and method for implementing clock management of high-speed high capacity smart card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383525A (en) * 2000-04-20 2002-12-04 皇家菲利浦电子有限公司 Frequency sensor for each interface of data carrier
CN1591368A (en) * 2003-08-12 2005-03-09 三星电子株式会社 Memory controller, smart card and a method of controlling a read operation of a memory
US20070159747A1 (en) * 2005-12-22 2007-07-12 Infineon Technologies Ag Circuit arrangement and method for operating a circuit arrangement
CN101013477A (en) * 2007-02-05 2007-08-08 凤凰微电子(中国)有限公司 Unit and method for implementing clock management of high-speed high capacity smart card

Also Published As

Publication number Publication date
CN101499124A (en) 2009-08-05

Similar Documents

Publication Publication Date Title
CN101499124B (en) Method, system and apparatus for read-write operation of smart card
JP3811750B2 (en) Dual-mode smart card and related methods
KR100887083B1 (en) Ic module and cellular phone
AU2018445738B2 (en) Memory card, memory card adapter, and terminal device
US20050185463A1 (en) Nonvolatile memory and data processing system
WO2004031935A2 (en) Method and system for using a memory card protocol inside a bus protocol
CN103729205A (en) Electronic tag and method for upgrading electronic tag
CN101035336A (en) Mobile phone device with the RF electronic label
CN101587533B (en) Card reader and card reading method thereof
CN102402704B (en) Compound multifunctional IC card reader-writer
CN102968325A (en) USB (Universal Serial Bus) equipment and method and device for automatically initializing same
CN202102425U (en) Port conversion device
US8595420B2 (en) Method for dispatching and transmitting data streams between host system and memory storage apparatus having non-volatile memory and smart card chip, memory controller, and memory storage apparatus
EP2183704B1 (en) Memory card changer, method for reading or writing data in memory card changer
CN110414288A (en) Read-and-write device, system and reading/writing method
CN203224904U (en) Integrated device of mobile memory, smart card and payment terminal thereof
EP2618259B1 (en) Data erasable method of memory in smart card and smart card thereof
CN102891704A (en) Communication information medium and method for realizing conversion of communication information
WO2011120315A1 (en) Software upgrading method and device for card reader and card reader
US20130171931A1 (en) Communication Method Between Electronic Appliances, and Corresponding Appliances
EP2500845A2 (en) Portable electronic apparatus
EP2111012A2 (en) Reader/writer, communication processing device, communication processing method, data management system and communication system
CN101354754B (en) Intelligent memory card built-in with CPU IC and uses thereof
CN113875162B (en) Data exchange device between NFC reader and double-NFC interface responder
CN102289646B (en) Multi-read head radio frequency recognition method and reader-writer

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
CP01 Change in the name or title of a patent holder

Address after: 100015 Beijing city Chaoyang District Dongzhimen West eight Street No. 2 room Wanhong Yan Dong Business Garden

Patentee after: BEIJING WATCHDATA Co.,Ltd.

Address before: 100015 Beijing city Chaoyang District Dongzhimen West eight Street No. 2 room Wanhong Yan Dong Business Garden

Patentee before: BEIJING WATCH DATA SYSTEM Co.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101103

Termination date: 20211230

CF01 Termination of patent right due to non-payment of annual fee