CN101105761A - Emulator of contact type intelligent card with USB interface - Google Patents

Emulator of contact type intelligent card with USB interface Download PDF

Info

Publication number
CN101105761A
CN101105761A CNA2006100288565A CN200610028856A CN101105761A CN 101105761 A CN101105761 A CN 101105761A CN A2006100288565 A CNA2006100288565 A CN A2006100288565A CN 200610028856 A CN200610028856 A CN 200610028856A CN 101105761 A CN101105761 A CN 101105761A
Authority
CN
China
Prior art keywords
usb interface
emulator
card reader
resistor
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2006100288565A
Other languages
Chinese (zh)
Other versions
CN100465904C (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.)
Shanghai Huahong Integrated Circuit Co Ltd
Original Assignee
Shanghai Huahong Integrated Circuit Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Huahong Integrated Circuit Co Ltd filed Critical Shanghai Huahong Integrated Circuit Co Ltd
Priority to CNB2006100288565A priority Critical patent/CN100465904C/en
Publication of CN101105761A publication Critical patent/CN101105761A/en
Application granted granted Critical
Publication of CN100465904C publication Critical patent/CN100465904C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a simulator of contact intelligent card with USB interface, comprising a simulating chip and the supervising parts that controls the work of simulating chip. The simulator communicates with card reader through the USB interface, which has standard power line VDD and GND and signal line D+ and D-. The simulator has the own power source thereof which always supplies power to the simulating chip when the simulator is at work. User can control the simulator in the following ways: Control the connecting method of the signal line D+ and D- of USB interface with externally connected pull-up resistor through the supervising parts, and control the electrifying course of USB interface and its working mode of full speed or low speed. The supervising parts control the disconnecting of signal line D+ and D- of USB interface from the externally connected pull-up resistor and the pulling out course of simulating card from card reader. The invention can flexibly and conveniently set the connecting method of simulating chip's signal line D+ and D- with the external connected resistor by request, and simulate really the electrifying work course that is consistent with product and the regulation of agreement.

Description

Emulator with contact intelligent card of USB interface
Technical field
The present invention relates to a kind of emulator of smart card, particularly relate to a kind of emulator with contact intelligent card of USB interface.
Background technology
Along with the continuous popularization of smart card techniques and the continuous lifting of technical merit, a series of contact type smart card chips with USB interface that externally show as have appearred in recent years, be used for USB electron key products such as (KEY), and be widely used in the business such as online e-bank of bank.This class chip still belongs to the category of contact intelligent card, but has replaced to USB interface with the interface of card reader (being generally PC) from 7816 traditional interfaces.Referring to Fig. 2, the USB interface of this class chip must meet usb protocol equally, has VDD, the GND of standard, four power supplys of D+ and D-to be connected (referring to the USB1.1 agreement) with card reader 3 with signal wire.
The contact type smart card chip that USB interface has been arranged just need be its supporting corresponding emulator.This chip is after being packaged into card or USB KEY, its practical work process is such (shown in Fig. 1,2): the contact type smart card chip 1 with USB interface is after being packaged into smart card 2, its actual process of working on power is such: at first smart card 2 is inserted on the card reader 3, described chip 1 obtains power supply from the power lead VDD that is connected with card reader 3, and the user program in the chip 1 brings into operation subsequently; Card reader 3 also can be by detection chip 1 signal wire D+ and the D-pin on external resistance situation, judge that chip 1 will be operated in still pattern at full speed of low speed, begin then and the shaking hands, communicate by letter of chip 1.Card reader 3 is judged chip and will be operated in full-speed state by external pull-up resistor 4 on the signal wire D+ pin that detects chip 1.
According to the USB1.1 agreement, for the contact type smart card chip with USB interface that is packaged into card or USB KEY, the maximum capacity of power that card reader provides is 5V, 500mA, can only use the power supply from card reader fully.But for the emulator of the contact intelligent card that uses emulation chip with USB interface, owing to also be useful on the device of realizing copying, and the not equal factor of emulation chip function, volume, power consumption and product chips, the power supply that USB interface provides is far from being enough, and also needing additionally provides power supply for emulator.At emulator under-stream period chien shih emulation chip the power supply supply is arranged all the time.For but simulate the process that works on power of above-mentioned card and card reader, though need emulation chip to have power supply supply user program wherein not move again, just the user program in the chip that only behind the power supply of having found from USB interface, brings into operation.
The reading card machine just begins and the handshake procedure that blocks immediately in the outer meeting resistance conformance with standard that detects on its interface signal line D+ or the D-, and this process then must be controlled in emulator; That is to say,, only correctly be connected, after user program brings into operation, just can make card reader find to have on the card connection, the beginning handshake procedure with card reader at card according to the process that works on power in the agreement.
In addition, for USB interface the contact type smart card chip that can support of pattern and low-speed mode at full speed with USB interface, owing to be packaged into fixing product form such as card or USB KEY, product is operated at full speed or low-speed mode as requested, outer meeting resistance connected mode on chip signal line D+ and the D-also is fixed up, and card can only be worked in one mode.But for ease of the exploitation and the debugging of user program, in the emulator at this class chip, chip operation should switch under full speed or low-speed mode at any time flexibly.
In the emulator of present contact intelligent card with USB interface or emulation chip signal wire D+ and outer meeting resistance on the D-general also fixedlyed connected good, the control user program operation gets up to wait for the handshake procedure that card reader is sent earlier, and then emulator is connected on the card reader handshake procedure of beginning and card reader; Or earlier emulator is connected on the card reader, the handshake procedure of card reader starts, and wait for the user program foundation in the emulation chip and communicating by letter, and then the control user program operation gets up the beginning handshake procedure.Above-mentioned dual mode is all inconsistent with the course of work of product chips, simulate at emulator and plug card reader, and card reader begins to provide power supply, and the process that the user program in the emulation chip brings into operation immediately is impossible.And, because that emulation chip signal wire D+ and the outer meeting resistance on the D-have been fixedlyed connected is good, the startup of uncontrollable handshake procedure; Need make emulation chip switching at full speed and between the local-speed mode of operation, also can only realize by the mode that reconnects the outer meeting resistance on emulation chip signal wire D+ and the D-; USB interface has the hot plug function, and the disconnection process of analog card and card reader also must be from physically cutting off being connected of emulator and card reader.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of emulator with contact intelligent card of USB interface, can set the mode of the outer meeting resistance on emulation chip signal wire D+ and the D-more flexible, easily as requested, the process that works on power that real simulation is consistent with product and agreement regulation.
For solving the problems of the technologies described above, the present invention has the emulator of the contact intelligent card of USB interface, be achieved through the following technical solutions,
Described emulator comprises emulation chip, the monitor component of control emulation chip work, and described emulator is communicated by letter with card reader by USB interface, and this USB interface has power lead VDD, the GND of standard, signal wire D+ and D-; Wherein:
Described emulator has independent power supply, and at the emulator duration of work, emulation chip is all the time by described power supply power supply, and the user can preestablish the mode of operation of using USB interface and be full speed or low speed;
When the user program in the user starts emulation chip brought into operation, this user program is operation immediately not; Monitor component in the emulator detects the power supply signal VDD that whether has from card reader all the time, behind the power supply signal VDD that detects from card reader, monitor component judges that emulator has connected card reader, and the user program in the monitor component control emulation chip brings into operation immediately;
Monitor component is according to the mode initialization of USB interface before simultaneously, and the signal wire D+ of control USB interface and D-and pull-up resistor separately are according to coupling together with the corresponding mode of pattern, and handshake procedure can be found and begin to card reader immediately;
After handshake procedure finished, USB interface will be by full speed or the low-speed mode work set.
Because whether the signal wire D+ of the interior USB interface of emulator is connected with the outer meeting resistance on the D-and ways of connecting is subjected to emulator control, card reader is judged the USB interface mode of operation by the signal wire D+ and the last outer meeting resistance connected mode of D-of identification USB interface, by whether there being outer meeting resistance to judge whether that card plugs on identification signal wire D+ of USB interface and the D-, therefore only need the user to control emulator, the signal wire D+ of emulator change USB interface and the outer meeting resistance connected mode on the D-just can be controlled USB interface easily and need enter at full speed or low-speed mode.Equally, whether the user can also control the signal wire D+ of USB interface by emulator and be connected with outer meeting resistance on the D-and simulate the process that card reader was inserted or extracted in card release, and need not really physically emulator to be plugged card reader or pull up from card reader.
After adopting the present invention, have USB interface contact intelligent card emulator very real simulated go out the work on power process consistent with product and agreement regulation, convenient, simulate being connected and the disconnection process of card release and card reader flexibly.Not only guaranteed in simulation process and product use, the work on power consistance of process of user program, reduced the development risk of user program, also the plug process for user's test chart provide flexibly, means easily.
Description of drawings
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments:
Fig. 1 is the normal power up process flow diagram with contact intelligent card product of USB interface;
Fig. 2 has the contact Interface Smart Card product of USB and the connection diagram between the card reader;
Fig. 3 is the emulator of the contact intelligent card of the present invention with USB interface and the connection diagram between the card reader.
Embodiment
As shown in Figure 3, the emulator 5 that the present invention has the contact intelligent card of USB interface has independent power supply 6, at emulator 5 duration of works, emulation chip 7 wherein is all the time by power supply 6 power supplies, and the user can preestablish the mode of operation of using USB interface and be full speed or low speed.When the user program in the user starts emulation chip 7 brought into operation, this user program is operation immediately not.Monitor component 8 in the emulator 5 detects the power supply signal VDD that whether has from card reader all the time, only finding behind the power supply signal VDD of card reader 3, monitor component 8 judges that emulator 5 has connected card reader 3, and the user program in the monitor component 8 control emulation chips 7 brings into operation immediately.Monitor component 8 is according to the mode initialization of USB interface before simultaneously, and the signal wire D+ of control USB interface and D-and pull-up resistor separately 9,10 are according to coupling together with the corresponding mode of pattern, and handshake procedure can be found and begin to card reader 3 immediately.After handshake procedure finished, USB interface will be by full speed or the low-speed mode work set.Signal wire D+ connects pull-up resistor 9, and signal wire D-does not connect pull-up resistor 10, and USB interface is the full speed pattern.Signal wire D+ does not connect pull-up resistor 9, and signal wire D-connects pull-up resistor 10, and USB interface is a low-speed mode.Signal wire D+ does not connect pull-up resistor 9, and signal wire D-does not connect pull-up resistor 10, and card reader is thought does not have card to connect.Whether the signal wire D+ of USB interface is connected with external pull-up resistor 9,10 on the D-and ways of connecting is subjected to monitor component 8 controls.
The user controls emulator 5, by the signal wire D+ of monitor component 8 control USB interface and the connected mode of D-and external pull-up resistor 9,10, can control USB interface and enter the process of working on power, and be operated in full speed or low-speed mode.The user can also control emulator 5, and the signal wire D+ that controls USB interface by monitor component 8 is not connected with external pull-up resistor 9,10 with D-, and the process of card reader is extracted in the simulation card release.
The present invention can make things convenient for, set as requested flexibly the connected mode of the signal wire D+ and the outer meeting resistance on the D-of emulation chip 7, after identifying card reader USB interface power supply and providing, automatically the control user program brings into operation, outer meeting resistance on signal wire D+ and the D-of control emulation chip 7 is connected by the mode of setting, the handshake procedure of startup and card reader 3, and by predetermined full speed or low-speed mode communication.

Claims (2)

1. emulator with contact intelligent card of USB interface, described emulator comprises emulation chip, the monitor component of control emulation chip work, and described emulator is communicated by letter with card reader by USB interface, this USB interface has power lead VDD, the GND of standard, signal wire D+ and D-; It is characterized in that:
Described emulator has independent power supply, and at the emulator duration of work, emulation chip is all the time by described power supply power supply, and the user can preestablish the mode of operation of using USB interface and be full speed or low speed;
When the user program in the user starts emulation chip brought into operation, this user program is operation immediately not; Monitor component in the emulator detects the power supply signal VDD that whether has from card reader all the time, behind the power supply signal VDD that detects from card reader, monitor component judges that emulator has connected card reader, and the user program in the monitor component control emulation chip brings into operation immediately;
Monitor component is according to the mode initialization of USB interface before simultaneously, and the signal wire D+ of control USB interface and D-and pull-up resistor separately are according to coupling together with the corresponding mode of pattern, and handshake procedure can be found and begin to card reader immediately;
After handshake procedure finished, USB interface will be by full speed or the low-speed mode work set.
2. the emulator with contact intelligent card of USB interface as claimed in claim 1 is characterized in that: signal wire D+ connects pull-up resistor, and signal wire D-does not connect pull-up resistor, and USB interface is the full speed pattern; Signal wire D+ does not connect pull-up resistor, and signal wire D-connects pull-up resistor, and USB interface is a low-speed mode; Signal wire D+, D-all are not connected with pull-up resistor, and card reader is thought does not have card to connect.
CNB2006100288565A 2006-07-12 2006-07-12 Emulator of contact type intelligent card with USB interface Expired - Fee Related CN100465904C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100288565A CN100465904C (en) 2006-07-12 2006-07-12 Emulator of contact type intelligent card with USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100288565A CN100465904C (en) 2006-07-12 2006-07-12 Emulator of contact type intelligent card with USB interface

Publications (2)

Publication Number Publication Date
CN101105761A true CN101105761A (en) 2008-01-16
CN100465904C CN100465904C (en) 2009-03-04

Family

ID=38999667

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100288565A Expired - Fee Related CN100465904C (en) 2006-07-12 2006-07-12 Emulator of contact type intelligent card with USB interface

Country Status (1)

Country Link
CN (1) CN100465904C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110237B (en) * 2009-12-23 2012-11-14 北京中电华大电子设计有限责任公司 Processing method for lowering power consumption of multi-interface IC (Integrated Circuit) card pin
CN103870372A (en) * 2012-12-10 2014-06-18 苏州工业园区新宏博通讯科技有限公司 Fixture jig capable of achieving quick burning and testing
CN106484584A (en) * 2016-10-31 2017-03-08 上海华虹集成电路有限责任公司 Processor chips emulator
CN106484585A (en) * 2016-10-31 2017-03-08 上海华虹集成电路有限责任公司 Contact type intelligent card chip emulator
CN112084001A (en) * 2020-07-22 2020-12-15 北京杰创永恒科技有限公司 Simulator based on STM32 chip

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2849945B1 (en) * 2003-01-10 2005-03-11 Atmel Corp MEANS FOR COMMUNICATING USB CARDS USING HIGH OR HIGH SPEED TRANSFERS
US6769622B1 (en) * 2003-03-14 2004-08-03 Stmicroelectronics, Inc. System and method for simulating universal serial bus smart card device connected to USB host
US20040193393A1 (en) * 2003-03-28 2004-09-30 Keane John F. Reconfigurable logic for simulating stochastic discrete events
CN100476755C (en) * 2005-10-20 2009-04-08 上海祥佑数码科技有限公司 Emulator of expansible embedded microprocessor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110237B (en) * 2009-12-23 2012-11-14 北京中电华大电子设计有限责任公司 Processing method for lowering power consumption of multi-interface IC (Integrated Circuit) card pin
CN103870372A (en) * 2012-12-10 2014-06-18 苏州工业园区新宏博通讯科技有限公司 Fixture jig capable of achieving quick burning and testing
CN106484584A (en) * 2016-10-31 2017-03-08 上海华虹集成电路有限责任公司 Processor chips emulator
CN106484585A (en) * 2016-10-31 2017-03-08 上海华虹集成电路有限责任公司 Contact type intelligent card chip emulator
CN112084001A (en) * 2020-07-22 2020-12-15 北京杰创永恒科技有限公司 Simulator based on STM32 chip
CN112084001B (en) * 2020-07-22 2023-05-26 北京杰创永恒科技有限公司 Emulator based on STM32 chip

Also Published As

Publication number Publication date
CN100465904C (en) 2009-03-04

Similar Documents

Publication Publication Date Title
US7895386B2 (en) USB interface provided with host/device function and its control method
CN103136138B (en) Chip, chip debugging method and communication method for chip and external devices
CN100465904C (en) Emulator of contact type intelligent card with USB interface
WO2014179232A1 (en) Usb charging with data communication
CN103513994A (en) Method and system for carrying out FPGA on-line upgrading through PCIE
CN108475227A (en) Test functional component and data debugging method
CN101359303B (en) On-line debugging microcontroller and apparatus and debug method of external device thereof
CN102073602B (en) Computer system, connection control device as well as connecting and disconnecting method
CN105677596B (en) Control method and electronic equipment
CN106649021A (en) Testing device for PCIe slave device
CN102750243A (en) Easily-debugged embedded system of complex SD (secure digital) interface
CN206133546U (en) Storage device's break -make testing arrangement and system
CN202394228U (en) USB (Universal Serial Bus) equipment
CN201393230Y (en) USB interface-based wireless network card testing device
CN102854417A (en) Master test board and testing method thereof
CN206532282U (en) A kind of debug circuit, debugging apparatus, debugging system and a kind of electronic equipment
CN101131666B (en) Contact smart card simulation card
CN101329648B (en) Contact smart card emulator capable of debugging ATR
CN106502911A (en) Multiple terminals access device
CN201072549Y (en) GPIB-USB test instrument controller
CN104823174B (en) The method and system of USB3.0 compatible equipment enumerated again
CN201897784U (en) Upgrading controller of electronic device
CN112968332A (en) Compatible device and method for switching TYPE-C interface of tablet personal computer mainboard to UART serial port communication
CN109388528A (en) The test fixture of USB test method and USB device
CN206224462U (en) USB OTG function switching circuits based on PX2 chips

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090304

Termination date: 20200712

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