CN101295349B - Smart card data interception system and control method - Google Patents

Smart card data interception system and control method Download PDF

Info

Publication number
CN101295349B
CN101295349B CN2008101141853A CN200810114185A CN101295349B CN 101295349 B CN101295349 B CN 101295349B CN 2008101141853 A CN2008101141853 A CN 2008101141853A CN 200810114185 A CN200810114185 A CN 200810114185A CN 101295349 B CN101295349 B CN 101295349B
Authority
CN
China
Prior art keywords
data
frequency
smart card
card
mutual
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
CN2008101141853A
Other languages
Chinese (zh)
Other versions
CN101295349A (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.)
Feitian Technologies Co Ltd
Original Assignee
Beijing Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Beijing Feitian Technologies Co Ltd
Priority to CN2008101141853A priority Critical patent/CN101295349B/en
Publication of CN101295349A publication Critical patent/CN101295349A/en
Application granted granted Critical
Publication of CN101295349B publication Critical patent/CN101295349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a data intercepting system of a smart card and a control method, which pertain to the information safety field, can intercept the interactive data of the smart card and a card reader, and provide the basis for rapidly judging whether the problem of not identifying the smart card by the card reader is caused by the card reader or by the smart card. The technical proposal is that: the system comprises an input interface, an output interface, a frequency measurement circuit module, a control circuit module and a simulation card circuit; the input interface, the output interface, the frequency measurement circuit module and the control circuit module are serially connected; the simulation card consists of a contact point, a data cable and a connector, and the contact point is connected with the connector by the data cable. The invention further discloses the control method of the data intercepting system of the smart card.

Description

A kind of smart card data interception system and control method
Technical field
The present invention relates to information security field, be specifically related to a kind of smart card data interception system and control method.
Background technology
Since IC-card comes out, because it has advantages such as safe, that memory space big, be easy to carry, its application market shoots up, and has been widely used in various occasions such as bank, gate inhibition, public transport, computer system, communication, safety at present, big convenience people's life.IC-card and people's social life are got in touch closely day by day, make people more and more higher to the demand and the requirement of IC-card.
IC-card specifically is the meaning of integrated circuit card, and IC-card is a kind of plastic cards of built-in large scale integrated circuit, and the magnetic card size of the card phone that it is big or small and original is identical.IC-card can be divided into storage card, encrypted card and smart card three classes usually.
Smart card has microprocessor (CPU), be also referred to as the CPU card simultaneously, smart card (CPU card): the integrated circuit in the card comprises central processor CPU, programmable read only memory EEPROM, random access memory ram and is solidificated in card internal operating system COS (Chip Operating System) in the read only memory ROM.Data are divided into the outside and read and the inter-process part in the card, guarantee that data security is reliable in the card.。
IC-card, smart card have been arranged, what arise at the historic moment is exactly card reader, card reader is a kind of specialized equipment, there is slot can insert card, the card that is fit to is inserted slot, and port links to each other with computing machine and installs after the required driver, and computing machine can be used as a removable memory to card, by card reader read-write card, or by card reader directly and card mutual.Especially smart card, the smart card operation machine can also send order to smart card by card reader., extract certain bar customizing messages, or send order by card reader, require the instruction of intelligent card in processing bar, and the result is returned by card reader.
Yet, though the basic demand of Reader Design is to satisfy international standard, but the data exchange mode of some card is sometimes not in full conformity with international standard, such as the work waits for too long, thereby make card reader can't operate these cards, reflecting is exactly card reader nonrecognition card, the data interaction external world between card reader and the card can't know simultaneously, therefore, the unmatched problem of nonrecognition exists always between card reader and the card, and is difficult to directly judge to be that card reader existing problems or card have problems and brought inconvenience to people's life of working.
Summary of the invention
For solving problems of the prior art, the invention provides a kind of smart card data interception system and control method.
A kind of smart card data interception system, described system comprises input interface, output interface, frequency measurement circuit module, control circuit module and simulation card circuit, described input interface, frequency measurement circuit module, control circuit module, output interface are linked in sequence, described simulation card circuit links to each other with described output interface, wherein
Described input interface is used to connect the smart card of the work for the treatment of;
Described output interface is used to connect described simulation card circuit;
Described frequency measurement circuit module is used for frequency measurement and obtains smart card and the mutual clock frequency of card reader, and described clock frequency is specially absolute clock frequency or relative data frequency;
When described control circuit module is the absolute clock frequency in the mutual clock frequency of described smart card and described card reader, be used for according to described absolute clock frequency, calculate described smart card and the mutual data frequency of described card reader, and by the described data frequency intercepting reset answer data that calculate; Perhaps when the mutual clock frequency of described smart card and described card reader is the relative time clock frequency, be used for directly intercepting the reset answer data according to described relative data frequency;
Described simulation card circuit is used to insert card reader and connects described output interface.
Described simulation card circuit is made up of contact, data line and connector, and the contact is connected by data line with connector.
Described system can also comprise the reset answer parsing module, and described reset answer parsing module is used to resolve the reset answer data, judges that described reset answer data are negotiation mode or dedicated mode.
When described reset answer data are specially negotiation mode, control circuit module also specifically is used to search the frequency conversion instruction, and according to the information of described frequency conversion instruction and described smart card and the mutual absolute clock frequency of described card reader that records by described frequency measurement circuit module, calculate described smart card and the mutual data frequency of described card reader, and by the data layout design data interception way of the mutual data of the described data frequency that calculates and described smart card and described card reader, and data intercept.
When described reset answer data are specially negotiation mode, control circuit module also specifically is used to search the frequency conversion instruction, and according to the information of described frequency conversion instruction and described smart card and the mutual relative data frequency data intercept of described card reader that records by described frequency measurement circuit module.
When described reset answer data were specially dedicated mode, control circuit module also specifically was used for the data layout data intercept according to the mutual data of the default information of described reset answer data dedicated mode and described smart card and described card reader.
When described reset answer data were specially dedicated mode, control circuit module also specifically was used for reaching described smart card and the mutual relative data frequency data intercept of described card reader that is recorded by described frequency measurement circuit module according to the default information of described reset answer data dedicated mode.
There is funtcional relationship in the mutual clock frequency of data frequency that described smart card and described card reader are mutual and described smart card and described card reader.
The described frequency conversion instruction that described control circuit module finds is contained in the mutual data of described smart card and described card reader, and the variation of the funtcional relationship that specifically comprises described data frequency and described clock frequency is instructed in described frequency conversion.
Described system can also comprise memory module, is used to store the interception way of described control circuit module according to the mutual data of its described smart card that designs voluntarily and described card reader, the data of intercepting.
Described system can also comprise the transmission interface module, is used for the data upload with described intercepting.
Described transmission interface is uploaded the mode of described data intercept, uploads when can be data intercept or first data intercept is stored then, uploads after the storage again.
Described memory module can also be built in described control circuit module.
Described transmission interface module can also be built in described control circuit module.
Described frequency measurement circuit module can be built in described control circuit module.
A kind of control method of smart card data interception system may further comprise the steps:
Equipment connects: smart card, input interface, frequency measurement circuit, control circuit, output interface, simulation card circuit, card reader are linked in sequence;
Frequency measurement obtains clock frequency: described frequency measurement circuit frequency measurement obtains described smart card by described simulation card and the mutual clock frequency of described card reader, comprises absolute clock frequency or relative data frequency;
Data cutout: when the mutual clock frequency of described smart card and described card reader is the absolute clock frequency, described control circuit is according to described smart card and mutual described smart card of absolute clock frequency computation part and the mutual data frequency of described card reader of described card reader, and by the described data frequency intercepting reset answer data that calculate; When the mutual clock frequency of perhaps described smart card and described card reader was the relative data frequency, described control circuit directly intercepted the reset answer data according to described relative data frequency.
Described simulation card circuit is made up of contact, data line and connector, and the contact is connected by data line with connector.
Described data cutout step comprises that also the reset answer data of resolving described control circuit intercepting are the negotiation mode or the step of dedicated mode.
When the reset answer data of described control circuit intercepting are negotiation mode, the interception way of the data that smart card and described card reader described in the described data cutout step are mutual, and the step of data intercept is specially:
Control circuit is searched the frequency conversion instruction in the mutual data of described smart card and described card reader.According to the information of described frequency conversion instruction and described smart card and the mutual absolute clock frequency of described card reader that records by described frequency measurement circuit, calculate described smart card and the mutual data frequency of described card reader, and by the data layout design data interception way of the mutual data of the described data frequency that calculates and described smart card and described card reader, and data intercept.Perhaps control circuit is in the mutual data of described smart card and described card reader, search the frequency conversion instruction, and according to the information of described frequency conversion instruction and described smart card and the mutual relative data frequency data intercept of described card reader that records by described frequency measurement circuit module.
When the reset answer data of described control circuit intercepting are dedicated mode, the interception way of the data that smart card and described card reader described in the described data cutout step are mutual, and the step of data intercept is specially:
Control circuit is according to the data layout data intercept of the mutual data of the default information in the described reset answer data dedicated mode and described smart card and described card reader.Perhaps control circuit reaches described smart card and the mutual relative data frequency data intercept of described card reader that is recorded by described frequency measurement circuit module according to the default information in the described reset answer data dedicated mode.
There is funtcional relationship in the mutual clock frequency of data frequency that described smart card and described card reader are mutual and described smart card and described card reader.
Described frequency conversion instruction is contained in the mutual data of described smart card and described card reader, and the variation of the funtcional relationship that specifically comprises described data frequency and described clock frequency is instructed in described frequency conversion.
Described method also comprises the step of the data that the described smart card of the described control circuit of storage intercepting and described card reader are mutual.
Described method also comprises the process of the data that the described smart card of uploading the intercepting of described control circuit and described card reader are mutual.
The described mode of uploading described data intercept is uploaded when can be data intercept or first data intercept is stored then, uploads after the storage again.
Beneficial effect: the present invention passes through interface with smart card, frequency measurement and control circuit, the simulation card links to each other with card reader, record smart card by simulation card and the mutual clock frequency of card reader, design data interception way voluntarily, the mutual data of smart card and card reader have been intercepted, solved the problem that the mutual data of smart card and card reader are in no position to take possession of, and, be that card reader existing problems or smart card existing problems provide foundation for solving card reader nonrecognition smart card fast by checking data and smart card and the mutual normal data of card reader of analyzing the present invention's intercepting.
Description of drawings
Fig. 1 is a kind of smart card data interception system structural representation that the embodiment of the invention provides;
Fig. 2 is the structural representation that the present invention simulates card;
Fig. 3 is a kind of smart card data interception method flow diagram that the embodiment of the invention provides.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
A kind of smart card data interception system that the embodiment of the invention provides, comprise input interface, output interface, frequency measurement circuit, control circuit and simulation card circuit, wherein, input interface, output interface, frequency measurement circuit, control circuit are linked in sequence, simulation card circuit links to each other with output interface, smart card links to each other with input interface, and simulation card other end insertion card reader.The smart card of then treating work inserts card reader indirectly by input interface, frequency measurement circuit, control circuit, output interface and simulation card, carries out data interaction with card reader.Wherein, card reader can be connected in the equipment that main frame also can be connected in embedded device or other support usb communication or serial communication.
Embodiment 1:
Referring to Fig. 1, the embodiment of the invention provides a kind of smart card data interception system, and this system comprises: input interface 101, output interface 102, frequency measurement circuit module 103, control circuit module 104 and simulation card circuit 105;
Input interface 101 is used to connect the smart card that the main frame that links to each other with card reader will be operated, and input interface module 101 reality are slot;
Output interface module 102 is used to connect the simulation card 105 that has inserted card reader;
In the present embodiment, card reader is connected in main frame, it is slot that smart card inserts input interface 101, simulation card circuit 105 inserts card reader, its other end is connected in output interface 102 by data line, input interface 101, frequency measurement circuit module 102, control circuit module 103, output interface 104 and simulation card circuit 105 are equivalent to data line, make smart card insert card reader indirectly.
In the present embodiment, input interface 101, simulation card circuit 200 and smart card and card reader are observed the 7816-4 agreement equally, VCC (supply voltage) is arranged, GND (), CLK (clock), RST (resetting), 5 contacts of I/O (input and output), when connecting with input interface 101, smart card promptly inserts slot, after simulation card circuit 105 inserts card reader, smart card and input interface 101 are slot, the contact of simulation card circuit 105 and card reader is mechanical connection respectively, simulation card circuit 105, output interface 102, control circuit module 104, frequency measurement circuit module 102, input interface module 101 and smart card are activated, and main frame passes through card reader, operative intelligence cards such as simulation card circuit.
Frequency measurement circuit module 103, be used for being connected in input interface 101 at the smart card that the main frame that is connected in card reader will be operated, and simulation card circuit 105 inserts card reader, when being connected with output interface 102 simultaneously, frequency measurement obtains this smart card by simulation card circuit 105 and the mutual clock frequency of card reader, wherein, frequency measurement module 103 can also be built in control circuit module 104;
In the present embodiment, the clock frequency that frequency measurement circuit module 103 records can be that the absolute clock frequency also can be the relative data frequency, the absolute clock frequency was obtained by 100 pulses and the used time thereof that frequency measurement circuit module 103 records, be absolute clock frequency=100/t, the t=28.01 microsecond that present embodiment is measured, then absolute clock frequency=100/28.01 microsecond=3.57 megahertzes.In the practical application, can also realize with counter, promptly in this system, realize counter, counter begins counting constantly at t0, its count value is counting 1, begin to count the back counter and whenever receive a clock signal count value and add 1, t1 count value constantly is counting 2, then absolute clock frequency=(counting 2-counting 1)/(t1-t0); The relative data frequency is by frequency measurement circuit module 103 recording clock pulse numbers, and comes corresponding relative data frequency to obtain by the time clock number of this record.
Control circuit module 104 is used for the smart card and the mutual clock frequency of card reader that record according to frequency measurement circuit module 103, designs the interception way of the mutual data of smart card and card reader voluntarily, and data intercept;
Simulation card circuit 105 is used for, and inserts card reader, and is connected in the output interface module 102 of data cutout equipment 100.
In the present embodiment, when the clock frequency that records when the frequency measurement circuit module is the absolute clock frequency, control circuit module 104 specifically is used for: the smart card and the mutual absolute clock frequency of card reader that record according to frequency measurement circuit module 103, the data frequency that computational intelligence card and card reader are mutual, and by the data frequency intercepting ATR data that calculate.
Wherein, the mutual data frequency of smart card and card reader specifically is a baud rate, and there is funtcional relationship in the mutual clock frequency of this data frequency and smart card and card reader, for convenient understand be exemplified below:
Data frequency=f1 (clock frequency), in the present embodiment, data frequency=clock frequency/372=3.57 megahertz/372=9600.
When the clock frequency that records when frequency measurement circuit module 103 was the relative data frequency, control circuit module 104 specifically is used for: smart card and the mutual relative data frequency of card reader according to frequency measurement circuit module 103 records directly intercepted the ATR data.In the present embodiment, relative data frequency=clock frequency/372,372 time clock of promptly every mistake obtain the 1bit position.
Preferably, system comprises that also the ATR parsing module is used to resolve the ATR data of control circuit module 104 interceptings in the present embodiment, and judges that described ATR data are negotiation mode or dedicated mode.
When analysis result was ATR data agreement pattern, control circuit module 104 specifically was used to search the frequency conversion instruction;
Find the frequency conversion instruction, then control circuit module 104 is used for according to the information of frequency conversion instruction and smart card and the mutual absolute clock frequency of card reader that is recorded by frequency measurement circuit module 103, the data frequency that computational intelligence card and card reader are mutual, and by the data layout design data interception way of the mutual data of this data frequency and smart card and card reader, data intercept;
Do not find the frequency conversion instruction, then control circuit module 104 is used for according to this absolute clock frequency computation part data frequency, with the data cutout mode of this data frequency and smart card and card reader interaction data, data intercept.
Wherein, frequency conversion instruction is contained in the mutual data of smart card and card reader; The frequency conversion instruction is specially an instruction, new funtcional relationship after designation data frequency and clock frequency funtcional relationship change, for example: before control circuit module 104 finds the frequency conversion instruction, data frequency=f1 (clock frequency 1), after finding the frequency conversion instruction, frequency conversion instruction indication: the funtcional relationship of data frequency and clock frequency is changed to: data frequency=f2 (clock frequency 2), wherein f1 can equal f2, also can be not equal to f2, but control circuit module 104 does not find the frequency conversion instruction, and then clock frequency can change scarcely.
The data layout of the data that smart card and card reader are mutual is specially the figure place that a byte takies in serial data transmission, immobilize.A general complete byte takies 8, the smart card scope, and a complete byte generally takies 10, and promptly data layout is 10.
In the present embodiment, the absolute clock frequency, under the ATR data agreement pattern: control circuit module 104 is at first with data frequency=f1 (clock frequency 1)=absolute clock frequency 1/372=3.57 megahertz/372=9600, with data layout be 10, design data interception way voluntarily, data intercept, carrying out along with data cutout, control circuit module 104 is in the data that are truncated to, find the frequency conversion instruction, frequency conversion instruction designation data frequency and clock frequency funtcional relationship are changed to: data frequency=f2 (clock frequency 2)=2* absolute clock frequency 2/372=2*3.57 megahertz/372=19200, then control circuit module 104 is 10 with data frequency 19200 and data layout, the design data interception way, data intercept.
Under relative data frequency, the ATR data agreement pattern: control circuit module 104 is at first with international standard relative data frequency=clock frequency/372, data intercept, and 372 time clock of promptly every mistake obtain the 1bit position.Along with the carrying out of data cutout, control circuit module 104 finds the frequency conversion instruction in the data that are truncated to, get relative data frequency=clock frequency * 2/372, and then the relative data frequency is corresponding 186 pulses by corresponding 372 pulse change, data intercept.
In the practical application, can also be that control circuit module 104 is by in the ATR data that are truncated to, it is 2* clock frequency/512 that analysis obtains the relative data frequency shift, be that 256 time clock of every mistake obtain the 1bit position, then control circuit module 104 obtains the pattern data intercept of 1bit position or other mode data intercepts with 256 time clock of every mistake.
When analysis result was ATR data dedicated mode, control circuit module 104 specifically was used for the data layout data intercept according to the mutual data of the default information of ATR data dedicated mode and described smart card and described card reader.
Under the dedicated mode of absolute clock frequency, ATR data: control circuit module 104 specifically is used for the data layout data intercept according to the mutual data of the default information of ATR data dedicated mode and smart card and card reader.For convenient understanding is exemplified below: control circuit module 104 is at first with international standard data frequency=f1 (clock frequency 1)=absolute clock frequency 1/372=3.57 megahertz/372=9600, with data layout be 10, design data interception way voluntarily, data intercept, carrying out along with data cutout, control circuit module 104 is by in the ATR data that are truncated to, get data frequency=f2 (clock frequency 2)=2* absolute clock frequency 2/372=2*3.57 megahertz/372=19200, then control circuit module 104 is 10 with data frequency 19200 and data layout, the design data interception way, data intercept.
The relative data frequency, under the dedicated mode of ATR data: control circuit module 104 specifically is used for the default information data intercept according to ATR data dedicated mode, for convenient understanding is exemplified below: control circuit module 104 obtains the method data intercepts of 1bit position at first with 372 time clock of the every mistake of international standard, carrying out along with data cutout, control circuit module 104 is by in the ATR data that are truncated to, it is that 186 time clock of every mistake obtain the 1bit position that analysis obtains the relative data frequency shift, and then control circuit module 104 obtains the pattern data intercept of 1bit position with 186 time clock of every mistake.
In the practical application, can also be that control circuit module 104 is by in the ATR data that are truncated to, it is 2* clock frequency/512 that analysis obtains the relative data frequency shift, be that 256 time clock of every mistake obtain the 1bit position, then control circuit module 104 obtains the pattern data intercept of 1bit position or other mode data intercepts with 256 time clock of every mistake.
Preferably, this system can also comprise memory module 105, and this memory module 105 is used for, and storage control circuit module 104 is according to the data cutout mode of its smart card that designs voluntarily and card reader interaction data, the data of intercepting.
Preferably, this system can also comprise transmission interface module 106, and this transmission interface module 106 is used for, with the data upload of intercepting.
The mode of transmission interface module 106 above-mentioned data intercepts is uploaded when can be data intercept or first data intercept is stored then, uploads after the storage again.
Wherein, memory module 105, transmission interface module 106 can also be built in control circuit module 104.
Fig. 2 simulates the structural representation of card for the present invention.The simulation card is made up of contact, data line and connector, and the contact is connected by data line with connector.
Embodiment 2:
The control method of a kind of smart card data interception system that the embodiment of the invention provides, comprise input interface, output interface, frequency measurement circuit, control circuit and simulation card circuit, wherein, input interface, output interface, frequency measurement circuit, control circuit are linked in sequence, simulation card circuit links to each other with output interface, smart card links to each other with input interface, and simulation card other end insertion card reader.The smart card of then treating work inserts card reader indirectly by input interface, frequency measurement circuit, control circuit, output interface and simulation card, carries out data interaction with card reader.Wherein, card reader can be connected in the equipment that main frame also can be connected in embedded device or other support usb communication or serial communication.
Referring to Fig. 3, the embodiment of the invention provides a kind of control method of smart card data interception system, and wherein card reader is connected in main frame, and this method specifically comprises:
Step 201: smart card, input interface, frequency measurement circuit, control circuit, output interface, simulation card circuit, card reader are linked in sequence;
In the present embodiment, card reader is connected in main frame, it is slot that smart card inserts input interface, simulation card circuit inserts card reader, its other end is connected in output interface, input interface, frequency measurement circuit, control circuit, output interface 104 and simulation card circuit 105 are equivalent to data line, make smart card insert card reader indirectly.
In the present embodiment, input interface, simulation card circuit and smart card and card reader are observed the 7816-4 agreement equally, VCC (supply voltage) is arranged, GND (), CLK (clock), RST (resetting), 5 contacts of I/O (input and output), when connecting with input interface, smart card promptly inserts slot, after simulation card circuit inserts card reader, smart card and input interface are slot, the contact of simulation card circuit and card reader is mechanical connection respectively, simulation card circuit, output interface, control circuit, frequency measurement circuit, input interface and smart card are activated, and main frame passes through card reader, operative intelligence cards such as simulation card circuit.
Step 202: the frequency measurement circuit frequency measurement obtains smart card by simulation card circuit and the mutual clock frequency of card reader;
In the present embodiment, the clock frequency that step 203 frequency measurement circuit records can be that the absolute clock frequency also can be the relative data frequency, the absolute clock frequency was obtained by 100 pulses and the used time thereof that frequency measurement circuit records, be absolute clock frequency=100/t, the t=28.01 microsecond that present embodiment is measured, then absolute clock frequency=100/28.01 microsecond=3.57 megahertzes.In the practical application, can also realize with counter, promptly in this system, realize counter, counter begins counting constantly at t0, its count value is counting 1, begin to count the back counter and whenever receive a clock signal count value and add 1, t1 count value constantly is counting 2, then absolute clock frequency=(counting 2-counting 1)/(t1-t0); The relative data frequency is by frequency measurement circuit recording clock pulse number, and comes corresponding relative data frequency to obtain by the time clock number of this record.
Step 203: control circuit designs the interception way of the mutual data of smart card and card reader voluntarily according to its smart card that records and the mutual clock frequency of card reader, and data intercept.
Simulation card circuit is made up of contact, data line and connector in the present embodiment step 201, and the contact is connected by data line with connector.
In the present embodiment, the mutual clock frequency of smart card and described card reader is specially absolute clock frequency or relative data frequency.
In the present embodiment step 202, when the mutual clock frequency of smart card and card reader was specially the absolute clock frequency, the step of control circuit data intercept also comprised:
Control circuit is according to smart card and mutual absolute clock frequency computation part smart card and the mutual data frequency of card reader of card reader, and by the data frequency intercepting ATR data that calculate.
Wherein, the mutual data frequency of smart card and card reader specifically is a baud rate, and there is funtcional relationship in the mutual clock frequency of this data frequency and smart card and card reader, for convenient understand be exemplified below:
Data frequency=f1 (clock frequency), in the present embodiment, data frequency=clock frequency/372=3.57 megahertz/372=9600.
In the present embodiment step 202, when the mutual clock frequency of smart card and card reader was specially the relative data frequency, the step of control circuit data intercept also comprised:
Control circuit directly intercepts the ATR data according to the relative data frequency.In the present embodiment, relative data frequency=clock frequency/372,372 time clock of promptly every mistake obtain the 1bit position.
Preferably, present embodiment comprises that also the ATR data of resolving the control circuit intercepting are the negotiation mode or the step of dedicated mode.
Wherein, when the ATR data of control circuit intercepting are negotiation mode, the interception way of the data that step 204 Circuit Design smart card and card reader are mutual, and the step of data intercept is specially:
Control circuit is searched the frequency conversion instruction in the mutual data of smart card and card reader:
Find the frequency conversion instruction then according to the information of frequency conversion instruction and smart card and the mutual absolute clock frequency of card reader that records by frequency measurement circuit, the data frequency that computational intelligence card and card reader are mutual, and by the data layout design data interception way of the mutual data of the data frequency that calculates and smart card and card reader, and data intercept; There is funtcional relationship in the mutual clock frequency of data frequency that smart card and card reader are mutual and smart card and card reader.
Do not find the frequency conversion instruction, then control circuit module 104 is used for according to this absolute clock frequency computation part data frequency, with the data cutout mode of this data frequency and smart card and card reader interaction data, data intercept.
Wherein, frequency conversion instruction is contained in the mutual data of smart card and card reader; The frequency conversion instruction is specially an instruction, new funtcional relationship after designation data frequency and clock frequency funtcional relationship change, for example: before control circuit module 104 finds the frequency conversion instruction, data frequency=f1 (clock frequency 1), after finding the frequency conversion instruction, frequency conversion instruction indication: the funtcional relationship of data frequency and clock frequency is changed to: data frequency=f2 (clock frequency 2), wherein f1 can equal f2, also can be not equal to f2, but control circuit module 104 does not find the frequency conversion instruction, and then clock frequency can change scarcely.
The data layout of the data that smart card and card reader are mutual is specially the figure place that a byte takies in serial data transmission, immobilize.A general complete byte takies 8, the smart card scope, and a complete byte generally takies 10, and promptly data layout is 10.
In the present embodiment, the absolute clock frequency, under the ATR data agreement pattern: control circuit module 104 is at first with data frequency=f1 (clock frequency 1)=absolute clock frequency 1/372=3.57 megahertz/372=9600, with data layout be 10, design data interception way voluntarily, data intercept, carrying out along with data cutout, control circuit module 104 is in the data that are truncated to, find the frequency conversion instruction, frequency conversion instruction designation data frequency and clock frequency funtcional relationship are changed to: data frequency=f2 (clock frequency 2)=2* absolute clock frequency 2/372=2*3.57 megahertz/372=19200, then control circuit module 104 is 10 with data frequency 19200 and data layout, the design data interception way, data intercept.
Under relative data frequency, the ATR data agreement pattern: control circuit module 104 is at first with international standard relative data frequency=clock frequency/372, data intercept, and 372 time clock of promptly every mistake obtain the 1bit position.Along with the carrying out of data cutout, control circuit module 104 finds the frequency conversion instruction in the data that are truncated to, get relative data frequency=clock frequency * 2/372, and then the relative data frequency is corresponding 186 pulses by corresponding 372 pulse change, data intercept.
In the practical application, can also be that control circuit module 104 is by in the ATR data that are truncated to, it is 2* clock frequency/512 that analysis obtains the relative data frequency shift, be that 256 time clock of every mistake obtain the 1bit position, then control circuit module 104 obtains the pattern data intercept of 1bit position or other mode data intercepts with 256 time clock of every mistake.
Wherein, when the ATR data of control circuit intercepting are dedicated mode, the interception way of the data that step 204 Circuit Design smart card and card reader are mutual, and the step of data intercept is specially:
Control circuit is according to the data layout data intercept of the mutual data of the default information in the ATR data dedicated mode and smart card and card reader.
Under the dedicated mode of absolute clock frequency, ATR data: control circuit module 104 specifically is used for the data layout data intercept according to the mutual data of the default information of ATR data dedicated mode and smart card and card reader.For convenient understanding is exemplified below: control circuit module 104 is at first with international standard data frequency=f1 (clock frequency 1)=absolute clock frequency 1/372=3.57 megahertz/372=9600, with data layout be 10, design data interception way voluntarily, data intercept, carrying out along with data cutout, control circuit module 104 is by in the ATR data that are truncated to, get data frequency=f2 (clock frequency 2)=2* absolute clock frequency 2/372=2*3.57 megahertz/372=19200, then control circuit module 104 is 10 with data frequency 19200 and data layout, the design data interception way, data intercept.
The relative data frequency, under the dedicated mode of ATR data: control circuit module 104 specifically is used for the default information data intercept according to ATR data dedicated mode, for convenient understanding is exemplified below: control circuit module 104 obtains the method data intercepts of 1bit position at first with 372 time clock of the every mistake of international standard, carrying out along with data cutout, control circuit module 104 is by in the ATR data that are truncated to, it is that 186 time clock of every mistake obtain the 1bit position that analysis obtains the relative data frequency shift, and then control circuit module 104 obtains the pattern data intercept of 1bit position with 186 time clock of every mistake.
In the practical application, can also be that control circuit module 104 is by in the ATR data that are truncated to, it is 2* clock frequency/512 that analysis obtains the relative data frequency shift, be that 256 time clock of every mistake obtain the 1bit position, then control circuit module 104 obtains the pattern data intercept of 1bit position or other mode data intercepts with 256 time clock of every mistake.
Preferably, this method also comprises the step of the data that the smart card of storage control circuit intercepting and card reader are mutual.
Preferably, this method also comprises the process of the data that the smart card of uploading control circuit intercepting and card reader are mutual.
Wherein, upload the mode of data intercept, upload when can be data intercept or first data intercept is stored then, upload again after the storage.
The embodiment of the invention is by passing through interface with smart card, frequency measurement and control circuit, the simulation card links to each other with card reader, record smart card by simulation card and the mutual clock frequency of card reader, design data interception way voluntarily, the mutual data of smart card and card reader have been intercepted, solved the problem that the mutual data of smart card and card reader are in no position to take possession of, and, be that card reader existing problems or smart card existing problems provide foundation for solving card reader nonrecognition smart card fast by checking data and smart card and the mutual normal data of card reader of analyzing embodiment of the invention intercepting.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (27)

1. smart card data interception system, it is characterized in that described system comprises input interface, output interface, frequency measurement circuit module, control circuit module and simulation card circuit, described input interface, frequency measurement circuit module, control circuit module, output interface are linked in sequence, described simulation card circuit links to each other with described output interface, wherein
Described input interface is used to connect the smart card of the work for the treatment of;
Described output interface is used to connect described simulation card circuit;
Described frequency measurement circuit module is used for frequency measurement and obtains smart card and the mutual clock frequency of card reader, and described clock frequency is specially absolute clock frequency or relative data frequency;
When described control circuit module is the absolute clock frequency in the mutual clock frequency of described smart card and described card reader, be used for according to described absolute clock frequency, calculate described smart card and the mutual data frequency of described card reader, and by the described data frequency intercepting reset answer data that calculate; Perhaps when the mutual clock frequency of described smart card and described card reader is the relative data frequency, be used for directly intercepting the reset answer data according to described relative data frequency;
Described simulation card circuit is used to insert card reader and connects described output interface.
2. smart card data interception system according to claim 1 is characterized in that described simulation card circuit is made up of contact, data line and connector, and the contact is connected by data line with connector.
3. smart card data interception system according to claim 1, it is characterized in that described system can also comprise the reset answer parsing module, described reset answer parsing module is used to resolve the reset answer data, judges that described reset answer data are negotiation mode or dedicated mode.
4. smart card data interception system according to claim 3, when it is characterized in that described reset answer data are specially negotiation mode, control circuit module also specifically is used to search the frequency conversion instruction, and according to the information of described frequency conversion instruction and described smart card and the mutual absolute clock frequency of described card reader that records by described frequency measurement circuit module, calculate described smart card and the mutual data frequency of described card reader, and by the data layout design data interception way of the mutual data of the described data frequency that calculates and described smart card and described card reader, and data intercept.
5. smart card data interception system according to claim 3, when it is characterized in that described reset answer data are specially negotiation mode, control circuit module also specifically is used to search the frequency conversion instruction, and according to the information of described frequency conversion instruction and described smart card and the mutual relative data frequency data intercept of described card reader that records by described frequency measurement circuit module.
6. smart card data interception system according to claim 3, when it is characterized in that described reset answer data are specially dedicated mode, control circuit module specifically is used for reaching described smart card and the mutual absolute clock frequency of described card reader that is recorded by described frequency measurement circuit module according to the default information of described reset answer data dedicated mode, calculate described smart card and the mutual data frequency of described card reader, and by the data layout design data interception way of the mutual data of the described data frequency that calculates and described smart card and described card reader, and data intercept.
7. smart card data interception system according to claim 3, when it is characterized in that described reset answer data are specially dedicated mode, control circuit module specifically is used for reaching described smart card and the mutual relative data frequency data intercept of described card reader that is recorded by described frequency measurement circuit module according to the default information of described reset answer data dedicated mode.
8. smart card data interception system according to claim 4 is characterized in that there is funtcional relationship in the mutual clock frequency of data frequency that described smart card and described card reader are mutual and described smart card and described card reader.
9. according to claim 4 or 5 described smart card data interception systems, it is characterized in that described frequency conversion instruction that described control circuit module finds is contained in the mutual data of described smart card and described card reader, and the variation of the funtcional relationship that specifically comprises described data frequency and described clock frequency is instructed in described frequency conversion.
10. smart card data interception system according to claim 1, it is characterized in that described system can also comprise memory module, be used to store the interception way of described control circuit module, the data of intercepting according to the mutual data of its described smart card that designs voluntarily and described card reader.
11. smart card data interception system according to claim 1 is characterized in that described system can also comprise the transmission interface module, is used for the data upload with described intercepting.
12. smart card data interception system according to claim 11 is characterized in that described transmission interface uploads the mode of described data intercept, uploads when can be data intercept or first data intercept is stored then, uploads after the storage again.
13. smart card data interception system according to claim 10 is characterized in that described memory module can also be built in described control circuit module.
14. smart card data interception system according to claim 11 is characterized in that described transmission interface module can also be built in described control circuit module.
15. smart card data interception system according to claim 1 is characterized in that described frequency measurement circuit module can be built in described control circuit module.
16. the control method of a smart card data interception system is characterized in that may further comprise the steps:
Equipment connects: smart card, input interface, frequency measurement circuit, control circuit, output interface, simulation card circuit, card reader are linked in sequence;
Frequency measurement obtains clock frequency: described frequency measurement circuit frequency measurement obtains described smart card by described simulation card and the mutual clock frequency of described card reader, comprises absolute clock frequency or relative data frequency;
Data cutout: when the mutual clock frequency of described smart card and described card reader is the absolute clock frequency, described control circuit is according to described smart card and mutual described smart card of absolute clock frequency computation part and the mutual data frequency of described card reader of described card reader, and by the described data frequency intercepting reset answer data that calculate; When the mutual clock frequency of perhaps described smart card and described card reader was the relative data frequency, described control circuit directly intercepted the reset answer data according to described relative data frequency.
17. the control method of smart card data interception system according to claim 16 is characterized in that described simulation card circuit is made up of contact, data line and connector, the contact is connected by data line with connector.
18. the control method of smart card data interception system according to claim 16 is characterized in that described data cutout step comprises that also the reset answer data of resolving described control circuit intercepting are the negotiation mode or the step of dedicated mode.
19. the control method of smart card data interception system according to claim 18, when the reset answer data that it is characterized in that the intercepting of described control circuit are negotiation mode, control circuit described in the described data cutout step is according to described smart card and mutual described smart card of absolute clock frequency computation part and the mutual data frequency of described card reader of described card reader, and the step that intercepts the reset answer data by the described data frequency that calculates is specially:
Control circuit is in the mutual data of described smart card and described card reader, search the frequency conversion instruction, and according to the information of described frequency conversion instruction and described smart card and the mutual absolute clock frequency of described card reader that records by described frequency measurement circuit, calculate described smart card and the mutual data frequency of described card reader, and by the data layout design data interception way of the mutual data of the described data frequency that calculates and described smart card and described card reader, and data intercept.
20. the control method of smart card data interception system according to claim 18, when the reset answer data that it is characterized in that the intercepting of described control circuit are negotiation mode, described control circuit is according to described relative data frequency, and the step that directly intercepts the reset answer data is specially:
Control circuit is searched the frequency conversion instruction in the mutual data of described smart card and described card reader, and according to the information of described frequency conversion instruction and described smart card and the mutual relative data frequency data intercept of described card reader that records by described frequency measurement circuit module.
21. the control method of smart card data interception system according to claim 18, when the reset answer data that it is characterized in that the intercepting of described control circuit are dedicated mode, described control circuit is according to described smart card and mutual described smart card of absolute clock frequency computation part and the mutual data frequency of described card reader of described card reader, and the step that intercepts the reset answer data by the described data frequency that calculates is specially:
Control circuit reaches described smart card and the mutual absolute clock frequency of described card reader that is recorded by described frequency measurement circuit module according to the default information in the described reset answer data dedicated mode, calculate described smart card and the mutual data frequency of described card reader, and by the data layout design data interception way of the mutual data of the described data frequency that calculates and described smart card and described card reader, and data intercept.
22. the control method of smart card data interception system according to claim 18, when the reset answer data that it is characterized in that the intercepting of described control circuit are dedicated mode, described control circuit is according to described relative data frequency, and the step that directly intercepts the reset answer data is specially:
Control circuit reaches described smart card and the mutual relative data frequency data intercept of described card reader that is recorded by described frequency measurement circuit module according to the default information in the described reset answer data dedicated mode.
23., it is characterized in that there is funtcional relationship in the mutual clock frequency of data frequency that described smart card and described card reader are mutual and described smart card and described card reader according to the control method of claim 19 or 21 described smart card data interception systems.
24. control method according to claim 19 or 20 described smart card data interception systems, it is characterized in that described frequency conversion instruction is contained in the mutual data of described smart card and described card reader, and the variation of the funtcional relationship that specifically comprises described data frequency and described clock frequency is instructed in described frequency conversion.
25. the control method of smart card data interception system according to claim 16 is characterized in that described method also comprises the step of the data that the described smart card of the described control circuit of storage intercepting and described card reader are mutual.
26. the control method of smart card data interception system according to claim 16 is characterized in that described method also comprises the step of the data that the described smart card of uploading the intercepting of described control circuit and described card reader are mutual.
27. the control method of smart card data interception system according to claim 26 is characterized in that the described mode of uploading described data intercept, uploads when can be data intercept or first data intercept is stored then, uploads after the storage again.
CN2008101141853A 2008-05-30 2008-05-30 Smart card data interception system and control method Active CN101295349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101141853A CN101295349B (en) 2008-05-30 2008-05-30 Smart card data interception system and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101141853A CN101295349B (en) 2008-05-30 2008-05-30 Smart card data interception system and control method

Publications (2)

Publication Number Publication Date
CN101295349A CN101295349A (en) 2008-10-29
CN101295349B true CN101295349B (en) 2011-07-06

Family

ID=40065628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101141853A Active CN101295349B (en) 2008-05-30 2008-05-30 Smart card data interception system and control method

Country Status (1)

Country Link
CN (1) CN101295349B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1209209A (en) * 1995-12-22 1999-02-24 汤姆森消费电子有限公司 Fault detection and modification circuit
US6223984B1 (en) * 1995-03-31 2001-05-01 Cybermark, Inc. Distinct smart card reader having wiegand, magnetic strip and bar code types emulation output
CN101295348A (en) * 2008-05-30 2008-10-29 北京飞天诚信科技有限公司 System and method for recording smart card data interchange time sequence

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6223984B1 (en) * 1995-03-31 2001-05-01 Cybermark, Inc. Distinct smart card reader having wiegand, magnetic strip and bar code types emulation output
CN1209209A (en) * 1995-12-22 1999-02-24 汤姆森消费电子有限公司 Fault detection and modification circuit
CN101295348A (en) * 2008-05-30 2008-10-29 北京飞天诚信科技有限公司 System and method for recording smart card data interchange time sequence

Also Published As

Publication number Publication date
CN101295349A (en) 2008-10-29

Similar Documents

Publication Publication Date Title
US6910638B2 (en) Smart card that can be configured for debugging and software development using secondary communication port
EP1457901A2 (en) System and method for simulating USB smart cards connected to USB host
KR19990008336A (en) Card interface
CN105205508A (en) Self-service card issuing machine for intelligent card
CN101192295A (en) Chip credit card network transaction system and method
EP2573715A2 (en) Microsd device loaded with a smart card
JP7126599B1 (en) Cash management device for amusement arcades
CN101295349B (en) Smart card data interception system and control method
CN101295348B (en) System and method for recording smart card data interchange time sequence
CN109214144A (en) The soft core property right protection of IP and infringement identification method based on USB3.2 agreement TS2 training sequence
CN109102436A (en) The soft core property right protection of IP and infringement identification method based on USB3.0 agreement TS1 training sequence
CN202976147U (en) Integrated radio frequency CPU card card-reading device
CN2678019Y (en) Reader for contactless and contact card
CN201126577Y (en) Card reader with identifiable function
CN2919391Y (en) Self-helping type device control system of mobile storage
Yang et al. RFID/NFC Security
CN109145527A (en) The soft core property right protection of IP and infringement identification method based on USB3.1 agreement TS2 training sequence
CN201429874Y (en) Trading terminal
CN109165482A (en) The soft core property right protection of IP and infringement identification method based on USB3.1 agreement TS1 training sequence
CN109165481A (en) The soft core property right protection of IP and infringement identification method based on USB3.0 agreement TS2 training sequence
CN109214143A (en) The soft core property right protection of IP and infringement identification method based on USB3.2 agreement TS1 training sequence
CN202976150U (en) Interface-expandable smart card reader-writer
CN102957537B (en) Data security Verification System and relevant multifunctional storage card and converting unit
CN102013000A (en) Universal bank card reader
Sharma et al. Smart Card for Healthcare System

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
C56 Change in the name or address of the patentee

Owner name: FEITIAN TECHNOLOGIES CO., LTD.

Free format text: FORMER NAME: BEIJING FEITIAN CHENGXIN TECHNOLOGY CO., LTD.

CP03 Change of name, title or address

Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer

Patentee after: Feitian Technologies Co., Ltd.

Address before: 100083, Haidian District, Xueyuan Road, No. 40 research, 7 floor, 5 floor, Beijing

Patentee before: Beijing Feitian Chengxin Science & Technology Co., Ltd.