WO2011124049A1 - Usbkey装置及利用usb接口实现智能卡通信的方法 - Google Patents

Usbkey装置及利用usb接口实现智能卡通信的方法 Download PDF

Info

Publication number
WO2011124049A1
WO2011124049A1 PCT/CN2010/075434 CN2010075434W WO2011124049A1 WO 2011124049 A1 WO2011124049 A1 WO 2011124049A1 CN 2010075434 W CN2010075434 W CN 2010075434W WO 2011124049 A1 WO2011124049 A1 WO 2011124049A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
interface
key device
interface circuit
pin
Prior art date
Application number
PCT/CN2010/075434
Other languages
English (en)
French (fr)
Inventor
李东声
Original Assignee
北京天地融科技有限公司
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 北京天地融科技有限公司 filed Critical 北京天地融科技有限公司
Priority to RU2013107936/08A priority Critical patent/RU2530337C1/ru
Priority to US13/814,517 priority patent/US20130173836A1/en
Priority to EP20100849286 priority patent/EP2587385B1/en
Publication of WO2011124049A1 publication Critical patent/WO2011124049A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Definitions

  • the present invention relates to the field of electronic technology applications, and in particular, to a USB Key device and a method for implementing smart card communication by using a USB interface.
  • USB The Key product is implemented by a combination of a USB interface and an internal processing chip.
  • the USB interface of the USB Key is connected to the internal processing chip after being converted by the communication protocol.
  • Existing USB The Key product can be connected to a PC via a USB interface, and is recognized as a USB product for data communication, and cannot be recognized as a smart card by using a USB interface and an IC card reader connection. Therefore, the existing USB is available.
  • the Key product cannot communicate with the IC card reader for data communication, enabling the application of various smart cards.
  • an embodiment of the present invention provides a USB Key device and method for realizing smart card communication by using USB interface, USB with USB interface
  • the Key device can be connected to an external device through a USB interface as a USB device for data communication, and can be connected to an IC card reader through a USB interface as a contact smart card for data communication.
  • the embodiment of the invention provides a USB Key device, including:
  • USB interface USB interface circuit
  • IO interface circuit interface processing unit
  • clock clock frequency setting unit and security chip
  • the USB interface is electrically connected to the security chip via the USB interface circuit and the IO interface circuit respectively;
  • the clock and clock frequency setting unit are electrically connected to the security chip
  • the D+ pin of the USB interface is electrically connected to the D+ pin of the USB interface circuit, and the D-pin of the USB interface is electrically connected to the D-pin of the USB interface circuit;
  • the IO interface circuit includes a bidirectional interface and an input interface
  • the D+ pin of the USB interface is electrically connected to any one of the interfaces of the IO interface circuit, and the D- pin of the USB interface and the remaining interface of the IO interface circuit except the pin connected to the D+ pin connection;
  • the interface processing unit is configured to set a bidirectional interface of the IO interface circuit to an input mode, determine a level of the bidirectional interface, and turn the USB interface circuit on or off according to a level state of the bidirectional interface.
  • a bidirectional interface in the IO interface circuit includes:
  • An input interface and an output interface are provided.
  • the interface processing unit includes:
  • the setting module is configured to set a bidirectional interface of the IO interface circuit to an input mode
  • the determining module is configured to determine, after the setting module sets the bidirectional interface to an input mode, whether the bidirectional interface is at a low level;
  • the control module is configured to: when the determining module determines that the bidirectional interface is at a high level, turn off the USB interface circuit; and when the determining module determines that the bidirectional interface is at a low level, turn on the USB interface circuit .
  • the IO interface circuit is disposed within the security chip.
  • the security chip uses a smart card chip.
  • the clock is disposed within the security chip.
  • the clock set by the clock frequency setting unit has a frequency of 9600 bps.
  • the embodiment of the invention further provides a method for implementing a smart card communication by using a USB interface, comprising:
  • the USB Key device adopts the USB Key device of claim 1;
  • the bidirectional interface of the IO interface circuit connected to the pin of the USB interface is set to an input mode, and the level of the bidirectional interface set to the input mode is determined, and if the device is at a low level, the USB The security chip in the Key device is electrically connected to the USB interface via the USB interface circuit, so that the USB Key device performs data communication by means of USB device communication;
  • USB interface circuit of the USB Key device is turned off to make the USB
  • the security chip in the Key device is electrically connected to the USB interface via the IO interface circuit, so that the USB Key device performs data communication in a contact smart card communication manner.
  • the security chip in the USB Key device is electrically connected to the USB interface via the IO interface circuit to make the USB
  • the data communication between the Key device and the contact smart card communication method further includes:
  • the clock set in the USB Key device is used as an input clock for the contact smart card communication.
  • the frequency of the clock set in the USB Key device is a 9600 bps baud rate suitable for an IC card reader.
  • the embodiment of the present invention passes the USB The IO interface circuit is set in the Key device, and the USB interface of the USB Key device is electrically connected to the internal security chip of the USB Key device via the IO interface circuit and the USB interface circuit, respectively, so that the USB The Key device can perform data communication with the connected device by USB device communication method or IC card communication method when judging that a different external device (a USB interface or an IC card reader of the PC) is connected.
  • the USB Key device structure is simple and easy to implement, making USB The Key device can exchange data in an IC card communication manner, and does not need to perform large-scale upgrade and modification of the existing IC card reader, and only needs to connect the smart card interface in parallel into a USB interface shape; the utility model is strong. Easy to popularize.
  • FIG. 1 is a circuit schematic diagram of a USB Key device according to Embodiment 1 of the present invention.
  • FIG. 2 is another schematic circuit diagram of a USB Key device according to Embodiment 1 of the present invention.
  • FIG. 3 is a structural block diagram of an interface processing unit of a USB Key device according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic circuit diagram of a USB Key device according to Embodiment 1 of the present invention.
  • FIG. 5 is another schematic circuit diagram of a USB Key device according to Embodiment 1 of the present invention.
  • FIG. 6 is a flowchart of a communication method of a USB Key device according to Embodiment 2 of the present invention.
  • This embodiment provides a USB Key device, which can be used as an electronic signature tool or an IC card, as shown in FIG. 1 and FIG. 2, the USB device.
  • the Key device includes:
  • USB interface 1, USB interface circuit 2, IO interface circuit 3, interface processing unit 5, clock 7, clock frequency setting unit 6 and security chip 4, in actual security chip 4 can use smart card chip, such as using SHC1216S chip;
  • the USB interface 1 is electrically connected to the security chip 4 via the USB interface circuit 2 and the IO interface circuit 3;
  • the clock 7 and the clock frequency setting unit 6 are both electrically connected to the security chip 4;
  • the D+ pin of the USB interface 1 is electrically connected to the D+ pin of the USB interface circuit 2, and the D- pin of the USB interface 1 is electrically connected to the D-pin of the USB interface circuit 2;
  • the IO interface circuit 3 includes a bidirectional interface A and an input interface B; wherein the bidirectional interface A can be composed of an input interface and an output interface;
  • the D+ pin of the USB interface 1 is electrically connected to any one of the interfaces of the IO interface circuit 3 (ie, either the bidirectional interface A or the input interface B), and the D-pin of the USB interface 1 and the IO interface
  • the remaining interface electrical connection of the circuit 3 except the connection D+ pin; that is, the D+ pin connection of the USB interface 1 can be electrically connected to any one of the bidirectional interface A or the input interface B of the IO interface circuit 3, and the D-pin It can also be electrically connected to any one of the input interface B or the bidirectional interface A of the IO interface circuit 3, as long as it is not connected to the same interface of the IO interface circuit 3 at the same time as the D+ pin, the USB shown in FIG.
  • the D+ pin of the USB interface 1 is electrically connected to the bidirectional interface A of the IO interface circuit 3, and the D- pin is electrically connected to the input interface B of the IO interface circuit 3;
  • the D+ pin of the USB interface 1 is electrically connected to the input interface B of the IO interface circuit 3, and the D- pin is electrically connected to the bidirectional interface A of the IO interface circuit 3;
  • the interface processing unit 5 is configured to set the bidirectional interface A of the IO interface circuit 3 to an input mode, determine the level of the bidirectional interface A, and enable or disable the USB according to the level state of the bidirectional interface. Interface 2. As shown in FIG. 3, the interface processing unit 5 specifically includes:
  • the setting module 51 is configured to set the bidirectional interface A of the IO interface circuit 1 to an input mode
  • the determining module 52 is configured to determine whether the bidirectional interface A is at a low level after the setting module 51 sets the bidirectional interface A to an input mode;
  • the control module 53 is configured to: when the determining module 52 determines that the bidirectional interface A is at a low level, turn off the USB interface circuit 2; when the determining module 52 determines that the bidirectional interface A is at a high level, The USB interface circuit 2 is turned on.
  • Each module of the interface processing unit 5 in the Key device may be in the form of a hardware module or a software module, as long as the corresponding function can be implemented.
  • the IO interface circuit in the above USB Key device can be integrated in the security chip.
  • USB above
  • the USB interface circuit, the IO interface circuit and the clock frequency setting module in the Key device can be set in the same chip, such as the ST7267 chip.
  • USB above
  • the USB interface circuit, the IO interface circuit, the clock frequency setting module and the security chip in the Key device can all be set in the same chip, such as the SHC1408 chip.
  • the clock in the Key device can be set in the security chip, and the clock set by the clock frequency setting unit has a frequency of 9600 bps, which can be consistent with the clock frequency of a general IC card reader, or can be set to a clock. For other frequencies, just keep the set frequency consistent with the clock frequency of the external IC card reader.
  • USB The D+ pin and the D- pin of the USB interface of the Key device correspond to the D+ pin and the D- pin in the USB interface on the IC card reader, respectively, if the D+ pin of the USB interface of the USB Key device is USB Bidirectional interface connection of IO interface circuit in Key device, D-pin and USB The input interface of the IO interface circuit in the Key device is connected, so that the D+ pin in the USB interface on the IC card reader is connected with the DATA pin in the IC card communication interface circuit, and the D+ pin and the IC card communication interface circuit are connected.
  • USB key of the USB Key device is D+ pin and USB Input interface of IO interface circuit in Key device, D-pin and USB
  • the bidirectional interface connection of the IO interface circuit in the Key device is to connect the D+ pin in the USB interface on the IC card reader to the RST pin in the IC card communication interface circuit, and the D+ pin and IC card communication interface circuit The DATA pin is connected.
  • the USB Key device in the embodiment of the present invention generally functions as a USB slave device, and the USB
  • the IO interface circuit (including at least one bidirectional interface and one input interface) is disposed in the Key device, and the IO interface circuit may be an IO interface circuit integrated in the security chip, and the D+ and D- pins of the USB interface are respectively connected to the USB Two IO interfaces of the IO interface circuit provided in the Key device (at least one of which is a bidirectional interface), USB
  • the bidirectional interface of the internal IO interface circuit is set to the input mode (high impedance state at this time), and the level of the bidirectional interface is determined. If it is low, the USB can be confirmed.
  • the Key device is connected to the USB host device (such as the USB interface of the PC), and the USB device is used for communication; if it is high, the USB can be confirmed.
  • the Key device is connected to the contact type IC card reader, and the USB interface circuit is closed, so that the USB interface is connected to the security chip via the IO interface circuit, wherein the pin of the USB interface of the bidirectional interface connecting the IO interface circuit is used as a contact type.
  • the DATA pin in the IC card interface the pin of the USB interface that connects the input interface of the IO interface circuit as the RST pin in the contact IC card interface, and makes the USB
  • the frequency of the clock set in the Key device is matched with the IC card reader, so that the USB Key device can communicate according to the specification of the IC card of ISO7816, the USB For the actual circuit connection of the Key device, refer to the circuit diagrams shown in FIG. 4 and FIG. 5.
  • USB of this embodiment By setting the IO interface circuit, the Key device connects the security chip to the USB interface through the USB interface circuit, and connects to the USB interface through the IO interface circuit, so that the USB device
  • the Key device can perform data communication with the connected device by USB device communication method or IC card communication method when judging that a different external device (a USB interface or an IC card reader of the PC) is connected.
  • the USB Key device structure is simple and easy to implement, making USB
  • the Key device can exchange data with good IC card communication, and does not require large-scale upgrade and modification of the existing IC card reader. It only needs to connect the smart card interface in parallel to form a USB interface shape; it is practical and convenient. popular.
  • the embodiment provides a USB key device for implementing smart card communication by using a USB interface, which is based on the USB provided in the first embodiment.
  • the communication method of the Key device is as shown in FIG. 6, and the method includes:
  • Step 31 USB with USB interface
  • an IO interface circuit having a bidirectional IO interface and an input interface is disposed, and the USB interface is electrically connected to the security chip through the IO interface circuit and the USB interface circuit, respectively;
  • Step 32 USB When the Key device is powered on, the bidirectional interface of the IO interface circuit is set to an input mode, and is the bidirectional interface determined to be low?
  • Step 33 if the level is low, the safety chip is electrically connected to the USB interface via the USB interface circuit, so that the USB The Key device performs data communication by means of USB device communication;
  • Step 34 if the level is high, the USB interface circuit is turned off, so that the security chip is electrically connected to the USB interface via the IO interface circuit, so that the USB The Key device performs data communication by means of contact smart card communication; in practice, the clock frequency is set at the same time to make USB The clock frequency of the Key device matches the clock frequency of the externally connected IC card reader. Generally, the clock frequency of the IC card reader is 9600 bps.
  • the IO interface circuit is set in the USB Key device, and the USB is The USB interface of the Key device is electrically connected to the internal security chip of the USB Key device via the IO interface circuit and the USB interface circuit, respectively, so that the USB The Key device can perform data communication with the connected device by USB device communication method or IC card communication method when judging that a different external device (a USB interface or an IC card reader of the PC) is connected.
  • the USB Key device structure is simple and easy to implement, making USB The Key device can exchange data with good IC card communication, and does not require large-scale upgrade and modification of the existing IC card reader. It only needs to connect the smart card interface in parallel to form a USB interface shape; it is practical and convenient. popular.

Description

USB Key装置及利用USB接口实现智能卡通信的方法
本申请要求于2010年4月7日提交中国专利局、申请号为201010142982.X、发明名称为“USB Key装置及利用USB接口实现智能卡通信的方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电子技术应用领域,尤其涉及一种USB Key装置及利用USB接口实现智能卡通信的方法。
发明背景
目前,使用的数字证书通常都是USB Key,USB Key采用USB接口与PC机连接,USB Key产品是通过USB接口与内部的处理芯片组合来实现。在USB Key的USB接口经通信协议转换后与内部处理芯片连接。现有的USB Key产品可与PC机经USB接口连接,被识别为USB产品,实现数据通信,而无法利用USB接口与IC卡读卡器连接被识别为智能卡,因此,现有的USB Key产品无法与IC卡读卡器配合进行数据通信,实现各种智能卡的应用。
发明内容
鉴于上述问题,本发明实施例提供一种USB Key装置及利用USB接口实现智能卡通信的方法,将具有USB接口的USB Key装置既可通过USB接口连接外部设备作为USB设备进行数据通信,又可通过USB接口与IC卡读卡器连接作为接触式智能卡进行数据通信。
本发明的目的是通过下述技术方案实现的:
本发明实施例提供一种USB Key装置,包括:
USB接口、USB接口电路、IO接口电路、接口处理单元、时钟、时钟频率设置单元和安全芯片;
所述USB接口分别经所述USB接口电路及所述IO接口电路与安全芯片电连接;
所述时钟及时钟频率设置单元均与安全芯片电连接;
所述USB接口的D+管脚与所述USB接口电路的D+管脚电连接,USB接口的D-管脚与所述USB接口电路的D-管脚电连接;
所述IO接口电路包括一个双向接口和一个输入接口;
所述USB接口的D+管脚与所述IO接口电路的任一个接口电连接,USB接口的D-管脚与所述IO接口电路的除D+管脚所连接管脚之外的剩余的接口电连接;
所述接口处理单元,用于将所述IO接口电路的双向接口设置为输入模式,并判断该双向接口的电平,并根据该双向接口的电平状态开启或关闭所述USB接口电路。
所述IO接口电路中的一个双向接口包括:
一个输入接口和一个输出接口。
所述接口处理单元包括:
设置模块、判断模块和控制模块;
所述设置模块,用于将所述IO接口电路的双向接口设置为输入模式;
所述判断模块,用于在所述设置模块将所述双向接口设置为输入模式后,判断所述双向接口是否为低电平;
所述控制模块,用于在所述判断模块判断所述双向接口为高电平时,关闭所述USB接口电路;在所述判断模块判断所述双向接口为低电平时,开启所述USB接口电路。
所述IO接口电路设置在所述安全芯片内。
所述安全芯片采用智能卡芯片。
所述时钟设置在所述安全芯片内。
所述时钟频率设置单元所设置时钟的频率为9600bps波特率。
本发明实施例还提供一种USB Key装置利用USB接口实现智能卡通信的方法,包括:
USB Key装置采用上述权利要求1所述的USB Key装置;
USB Key装置上电时,将所述USB接口的管脚连接的IO接口电路的双向接口设成输入模式,判断该置成输入模式的双向接口的电平,若为低电平,则使所述USB Key装置内的安全芯片经所述USB接口电路与USB接口电连接,使该USB Key装置以USB设备通信方式进行数据通信;
若为高电平,则关闭所述USB Key装置的USB接口电路,使所述USB Key装置内的所述安全芯片经所述IO接口电路与USB接口电连接,使该USB Key装置以接触式智能卡通信方式进行数据通信。
使所述USB Key装置内的所述安全芯片经所述IO接口电路与USB接口电连接,使该USB Key装置以接触式智能卡通信方式进行数据通信还包括:
以所述USB Key装置内设置的时钟作为接触式智能卡通讯时的输入时钟。
所述USB Key装置内设置的时钟的频率为适用于IC卡读卡器的9600bps波特率。
从上述本发明实施例提供的技术方案中可以看出,本发明实施例中通过在USB Key装置中设置IO接口电路,并使USB Key装置的USB接口分别经IO接口电路和USB接口电路与USB Key装置内部安全芯片电连接,使得该USB Key装置可在判断连接不同的外部设备(PC机的USB接口或IC卡读卡器)时,以USB设备通信方式或IC卡通信方式与所连接的设备进行数据通信。该USB Key装置结构简单、易于实现,使USB Key装置可很好以IC卡通信方式交换数据,并且不需要对现有的IC卡读卡器进行大规模升级和改造,只需要将智能卡接口并行连接成USB接口形状即可;实用性强,便于普及。
附图简要说明
图1为本发明实施例一提供的USB Key装置的电路原理图;
图2为本发明实施例一提供的USB Key装置的另一电路原理图;
图3为本发明实施例一提供的USB Key装置的接口处理单元的结构框图;
图4为本发明实施例一提供的USB Key装置的电路示意图;
图5为本发明实施例一提供的USB Key装置的另一电路示意图;
图6为本发明实施例二提供的USB Key装置的通信方法流程图。
实施本发明的方式
下面结合附图和具体实施例对本发明作进一步说明。
实施例一
本实施例提供一种USB Key装置,可作为电子签名工具或IC卡使用,如图1、2所示,该USB Key装置包括:
USB接口1、USB接口电路2、IO接口电路3、接口处理单元5、时钟7、时钟频率设置单元6和安全芯片4,实际中安全芯片4可采用智能卡芯片,如采用SHC1216S芯片等;
其中,所述的USB接口1分别经所述USB接口电路2及所述IO接口电路3与安全芯片4电连接;
所述的时钟7及时钟频率设置单元6均与安全芯片4电连接;
所述USB接口1的D+管脚与所述USB接口电路2的D+管脚电连接,USB接口1的D-管脚与所述USB接口电路2的D-管脚电连接;
所述IO接口电路3包括一个双向接口A和一个输入接口B;其中,双向接口A可由一个输入接口和一个输出接口构成;
所述USB接口1的D+管脚与所述IO接口电路3的任一个接口(即双向接口A或输入接口B中的任一个)电连接,USB接口1的D-管脚与所述IO接口电路3的除去连接D+管脚的剩余的接口电连接;即USB接口1的D+管脚连接可与IO接口电路3的双向接口A或输入接口B中的任一个电连接,而D-管脚也可与IO接口电路3的输入接口B或双向接口A中的任一个电连接,只要不与D+管脚同时连接到IO接口电路3的同一接口上即可,图1示意的USB Key装置中,USB接口1的D+管脚与IO接口电路3的双向接口A电连接,而D-管脚与IO接口电路3的输入接口B电连接;图2示意的USB Key装置中,USB接口1的D+管脚与IO接口电路3的输入接口B电连接,而D-管脚与IO接口电路3的双向接口A电连接;
所述接口处理单元5,用于将所述IO接口电路3的双向接口A设置为输入模式,并判断该双向接口A的电平,并根据该双向接口的电平状态开启或关闭所述USB接口2。如图3所示,接口处理单元5具体包括:
设置模块51、判断模块52和控制模块53;
其中,所述的设置模块51用于将所述IO接口电路1的双向接口A设置为输入模式;
所述的判断模块52用于在所述设置模块51将所述双向接口A设置为输入模式后,判断所述双向接口A是否为低电平;
所述的控制模块53用于在所述判断模块52判断所述双向接口A为低电平时,关闭所述USB接口电路2;在所述判断模块52判断所述双向接口A为高电平时,开启所述USB接口电路2。
可以知道,上述USB Key装置中的接口处理单元5的各模块可以采用硬件模块的形式,也可以采用软件模块的形式,只要能实现相应的功能即可。
上述USB Key装置中的IO接口电路可集成在所述的安全芯片内。
上述USB Key装置中的USB接口电路、IO接口电路和时钟频率设置模块均可设置在同一个芯片内,如ST7267芯片。
上述USB Key装置中的USB接口电路、IO接口电路、时钟频率设置模块和安全芯片均可设置在同一个芯片内,如SHC1408芯片。
上述USB Key装置中的时钟可设置在所述的安全芯片内,时钟频率设置单元所设置时钟的频率为9600bps波特率,可与一般的IC卡读卡器的时钟频率保持一致,也可以设置时钟为其它频率,只要保持所设置频率与外接的IC卡读卡器的时钟频率相一致即可。
上述USB Key装置连接外部IC卡读卡器使用时,USB Key装置的USB接口的D+管脚与D-管脚分别与IC卡读卡器上的USB接口中的D+管脚与D-管脚相对应,若USB Key装置的USB接口的D+管脚与USB Key装置内IO接口电路的双向接口连接,D-管脚与USB Key装置内IO接口电路的输入接口连接,则要使IC卡读卡器上的USB接口中的D+管脚与IC卡通信接口电路中的DATA管脚连接,D+管脚与IC卡通信接口电路中的RST管脚连接;
反之,若USB Key装置的USB接口的D+管脚与USB Key装置内IO接口电路的输入接口连接,D-管脚与USB Key装置内IO接口电路的双向接口连接,则要使IC卡读卡器上的USB接口中的D+管脚与IC卡通信接口电路中的RST管脚连接,D+管脚与IC卡通信接口电路中的DATA管脚连接。
本发明实施例中的USB Key装置一般作为USB从设备,在该USB Key装置中设置IO接口电路(包括至少一个双向接口和一个输入接口),该IO接口电路可以是集成在安全芯片内部的IO接口电路,将USB接口的D+、D-管脚分别并联到USB Key装置内设置的IO接口电路的两个IO接口上(其中至少一个是双向接口),USB Key装置上电时,将其内部的IO接口电路的双向接口置成输入模式(此时为高阻状态),判断该双向接口的电平,如果是低电平,可确认该USB Key装置连接的是USB主设备(如PC机的USB接口),就按USB设备进行通讯;如果是高电平,可确认该USB Key装置连接的是接触式IC卡读卡器,就将USB接口电路关闭,使USB接口经IO接口电路与安全芯片连接,其中,连接IO接口电路的双向接口的USB接口的管脚作为接触式IC卡接口中的DATA管脚,连接IO接口电路的输入接口的USB接口的管脚作为接触式IC卡接口中的RST管脚,并使USB Key装置内设置时钟的频率与IC卡读卡器相匹配,这样,就可以使USB Key装置按照ISO7816的IC卡的规范进行通信,该USB Key装置实际电路连接可参见图4、图5所示的电路示意图。
本实施例的USB Key装置通过设置IO接口电路,使安全芯片既经过USB接口电路与USB接口连接,又通过IO接口电路与USB接口连接,使得该USB Key装置可在判断连接不同的外部设备(PC机的USB接口或IC卡读卡器)时,以USB设备通信方式或IC卡通信方式与所连接的设备进行数据通信。该USB Key装置结构简单、易于实现,使USB Key装置可很好的IC卡通信交换数据,并且不需要对现有的IC卡读卡器进行大规模升级和改造,只需要将智能卡接口并行连接成USB接口形状即可;实用性强,便于普及。
实施例二
本实施例提供一种USB Key装置利用USB接口实现智能卡通信的方法,是基于上述实施例一给出的USB Key装置的通信方法,如图6所示,该方法包括:
步骤31,在具有USB接口的USB Key装置中,设置具有一个双向IO接口和一个输入接口的IO接口电路,使所述USB接口分别通过所述IO接口电路和USB接口电路与安全芯片电连接;
步骤32,USB Key装置上电时,将所述IO接口电路的双向接口置成输入模式,判断该双向接口是否为低电平?
步骤33,若是低电平,使安全芯片经所述USB接口电路与USB接口电连接,使USB Key装置以USB设备通信方式进行数据通信;
步骤34,若否是为高电平,关闭USB接口电路,使安全芯片经所述IO接口电路与所述USB接口电连接,使USB Key装置以接触式智能卡通信方式进行数据通信;实际中,同时设置时钟频率,使USB Key装置的时钟频率与外部连接的IC卡读卡器的时钟频率相匹配,一般IC卡读卡器的时钟频率为9600bps波特率。
综上所述,本发明实施例中通过在USB Key装置中设置IO接口电路,并使USB Key装置的USB接口分别经IO接口电路和USB接口电路与USB Key装置内部安全芯片电连接,使得该USB Key装置可在判断连接不同的外部设备(PC机的USB接口或IC卡读卡器)时,以USB设备通信方式或IC卡通信方式与所连接的设备进行数据通信。该USB Key装置结构简单、易于实现,使USB Key装置可很好的IC卡通信交换数据,并且不需要对现有的IC卡读卡器进行大规模升级和改造,只需要将智能卡接口并行连接成USB接口形状即可;实用性强,便于普及。
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。

Claims (10)

  1. 一种USB Key装置,其特征在于,包括:
    USB接口、USB接口电路、IO接口电路、接口处理单元、时钟、时钟频率设置单元和安全芯片;
    所述USB接口分别经所述USB接口电路及所述IO接口电路与安全芯片电连接;
    所述时钟及时钟频率设置单元均与安全芯片电连接;
    所述USB接口的D+管脚与所述USB接口电路的D+管脚电连接,USB接口的D-管脚与所述USB接口电路的D-管脚电连接;
    所述IO接口电路包括一个双向接口和一个输入接口;
    所述USB接口的D+管脚与所述IO接口电路的任一个接口电连接,USB接口的D-管脚与所述IO接口电路的除D+管脚所连接管脚之外的剩余的接口电连接;
    所述接口处理单元,用于将所述IO接口电路的双向接口设置为输入模式,并判断该双向接口的电平,并根据该双向接口的电平状态开启或关闭所述USB接口电路。
  2. 如权利要求1所述的USB Key装置,其特征在于,所述IO接口电路中的一个双向接口包括:
    一个输入接口和一个输出接口。
  3. 如权利要求1所述的USB Key装置,其特征在于,所述接口处理单元包括:
    设置模块、判断模块和控制模块;
    所述设置模块,用于将所述IO接口电路的双向接口设置为输入模式;
    所述判断模块,用于在所述设置模块将所述双向接口设置为输入模式后,判断所述双向接口是否为低电平;
    所述控制模块,用于在所述判断模块判断所述双向接口为高电平时,关闭所述USB接口电路;在所述判断模块判断所述双向接口为低电平时,开启所述USB接口电路。
  4. 如权利要求1所述的USB Key装置,其特征在于,所述IO接口电路设置在所述安全芯片内。
  5. 如权利要求1所述的USB Key装置,其特征在于,所述安全芯片采用智能卡芯片。
  6. 如权利要求1所述的USB Key装置,其特征在于,所述时钟设置在所述安全芯片内。
  7. 如权利要求1所述的USB Key装置,其特征在于,所述时钟频率设置单元所设置时钟的频率为9600bps波特率。
  8. 一种USB Key装置利用USB接口实现智能卡通信的方法,其特征在于,包括:
    USB Key装置采用上述权利要求1所述的USB Key装置;
    USB Key装置上电时,将所述USB接口的管脚连接的IO接口电路的双向接口设成输入模式,判断该置成输入模式的双向接口的电平,若为低电平,则使所述USB Key装置内的安全芯片经所述USB接口电路与USB接口电连接,使该USB Key装置以USB设备通信方式进行数据通信;
    若为高电平,则关闭所述USB Key装置的USB接口电路,使所述USB Key装置内的所述安全芯片经所述IO接口电路与USB接口电连接,使该USB Key装置以接触式智能卡通信方式进行数据通信。
  9. 如权利要求8所述的USB Key装置利用USB接口实现智能卡通信的方法,其特征在于,使所述USB Key装置内的所述安全芯片经所述IO接口电路与USB接口电连接,使该USB Key装置以接触式智能卡通信方式进行数据通信还包括:
    以所述USB Key装置内设置的时钟作为接触式智能卡通讯时的输入时钟。
  10. 如权利要求8所述的USB Key装置利用USB接口实现智能卡通信的方法,其特征在于,所述USB Key装置内设置的时钟的频率为适用于IC卡读卡器的9600bps波特率。
PCT/CN2010/075434 2010-04-07 2010-07-23 Usbkey装置及利用usb接口实现智能卡通信的方法 WO2011124049A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
RU2013107936/08A RU2530337C1 (ru) 2010-04-07 2010-07-23 Устройство usb-ключа и способ подключения смарт-карты с помощью интерфейса usb
US13/814,517 US20130173836A1 (en) 2010-04-07 2010-07-23 Usb key device and method for realizing intelligent card communication using usb interface
EP20100849286 EP2587385B1 (en) 2010-04-07 2010-07-23 Usb key device and method for realizing intelligent card communication using usb interface

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010142982.X 2010-04-07
CN201010142982XA CN101840387B (zh) 2010-04-07 2010-04-07 USB Key装置及其利用USB接口实现智能卡通信的方法

Publications (1)

Publication Number Publication Date
WO2011124049A1 true WO2011124049A1 (zh) 2011-10-13

Family

ID=42743766

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/075434 WO2011124049A1 (zh) 2010-04-07 2010-07-23 Usbkey装置及利用usb接口实现智能卡通信的方法

Country Status (5)

Country Link
US (1) US20130173836A1 (zh)
EP (1) EP2587385B1 (zh)
CN (1) CN101840387B (zh)
RU (1) RU2530337C1 (zh)
WO (1) WO2011124049A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014116931A1 (en) * 2013-01-24 2014-07-31 Texas Instruments Incorporated Signal conditioner
US9965424B2 (en) 2014-02-07 2018-05-08 Texas Instruments Incorporated USB switch with multi-role ports

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122332B (zh) * 2011-02-16 2014-06-18 天地融科技股份有限公司 电子签名工具的密码管理方法及系统
CN103064489B (zh) 2011-10-21 2016-03-30 华为终端有限公司 一种根据usb接口状态进行内部电路选择的方法及终端
CN102594559A (zh) * 2012-01-30 2012-07-18 公安部第三研究所 具备人体感应功能的usb私钥装置及其实现安全验证的方法
CN103427989A (zh) * 2012-05-16 2013-12-04 王志良 一种面向物联网环境的数据加密和身份认证方法
CN102819501B (zh) * 2012-08-21 2015-06-17 天地融科技股份有限公司 一种电子设备、数据接口类型的检测方法
CN102855202B (zh) * 2012-08-21 2015-06-17 天地融科技股份有限公司 一种电子设备、数据接口类型的检测方法
CN102929824B (zh) * 2012-10-15 2016-01-06 天地融科技股份有限公司 一种复用usb接口传输数据的系统
CN102929825B (zh) * 2012-10-15 2016-04-13 天地融科技股份有限公司 一种复用usb接口传输数据的方法和电子签名工具
CN103077151A (zh) * 2013-01-25 2013-05-01 上海斐讯数据通信技术有限公司 一种用于切换usb接口和标准串口的装置
US9471523B2 (en) * 2013-09-18 2016-10-18 Infineon Technologies Ag Serial interface systems and methods having multiple modes of serial communication
TWI509418B (zh) * 2014-06-30 2015-11-21 Chant Sincere Co Ltd 資料轉換系統與及其控制方法
CN104378200A (zh) * 2014-11-19 2015-02-25 中城智慧科技有限公司 一种采用时钟来控制密钥有效期的方法
US9734358B2 (en) * 2015-01-02 2017-08-15 High Sec Labs Ltd Self-locking USB protection pug device having LED to securely protect USB jack
SG11201803313TA (en) * 2015-10-21 2018-05-30 Tendyron Corp Communication device, adapter device, communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000023936A1 (en) * 1998-10-21 2000-04-27 Litronic, Inc. Apparatus and method of providing a dual mode card and reader
US20040073726A1 (en) * 1998-11-10 2004-04-15 Aladdin Knowledge Systems, Ltd. Usb key apparatus for interacting with a usb host via a usb port
WO2007023473A2 (fr) * 2005-08-25 2007-03-01 Idtek Track-And-Trace Sa Élément combinant une clé usb et un lecteur rfid
CN201044100Y (zh) * 2007-01-19 2008-04-02 北京天地融科技有限公司 Usb接口转换装置

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3144312B2 (ja) * 1996-08-28 2001-03-12 日本電気株式会社 クロック周期調節方法とその装置
US6581122B1 (en) * 1998-03-26 2003-06-17 Gemplus Smart card which operates with the USB protocol
US6978335B2 (en) * 2000-06-30 2005-12-20 02Micro International Limited Smart card virtual hub
US6439464B1 (en) * 2000-10-11 2002-08-27 Stmicroelectronics, Inc. Dual mode smart card and associated methods
US6913196B2 (en) * 2002-02-20 2005-07-05 O2Micro International Limited Dual mode controller for ISO7816 and USB enabled smart cards
CN2627564Y (zh) * 2003-06-04 2004-07-21 武汉天喻信息产业股份有限公司 U-Key盘
CN100568870C (zh) * 2003-08-03 2009-12-09 清华大学 一种通用串行数据双向传输接口系统
US7237719B2 (en) * 2003-09-03 2007-07-03 Stmicroelectronics, Inc. Method and apparatus for a USB and contactless smart card device
CN2672739Y (zh) * 2004-01-06 2005-01-19 江苏意源科技有限公司 双界面智能卡芯片
KR101038109B1 (ko) * 2004-07-05 2011-06-01 삼성전자주식회사 듀얼 인터페이스 모드를 지원하는 스마트 카드 시스템
US7685328B2 (en) * 2004-09-09 2010-03-23 Stmicroelectronics, Inc. Generic universal serial bus device operable at low and full speed and adapted for use in a smart card device
KR100842484B1 (ko) * 2006-10-30 2008-07-01 탁승호 접촉 및 비접촉식 스마트카드용 단말기와 그 단말기 회로

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000023936A1 (en) * 1998-10-21 2000-04-27 Litronic, Inc. Apparatus and method of providing a dual mode card and reader
US20040073726A1 (en) * 1998-11-10 2004-04-15 Aladdin Knowledge Systems, Ltd. Usb key apparatus for interacting with a usb host via a usb port
WO2007023473A2 (fr) * 2005-08-25 2007-03-01 Idtek Track-And-Trace Sa Élément combinant une clé usb et un lecteur rfid
CN201044100Y (zh) * 2007-01-19 2008-04-02 北京天地融科技有限公司 Usb接口转换装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2587385A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014116931A1 (en) * 2013-01-24 2014-07-31 Texas Instruments Incorporated Signal conditioner
US9710411B2 (en) 2013-01-24 2017-07-18 Texas Instruments Incorporated Signal conditioner
US9965424B2 (en) 2014-02-07 2018-05-08 Texas Instruments Incorporated USB switch with multi-role ports

Also Published As

Publication number Publication date
RU2530337C1 (ru) 2014-10-10
EP2587385A4 (en) 2014-02-19
CN101840387A (zh) 2010-09-22
EP2587385A1 (en) 2013-05-01
US20130173836A1 (en) 2013-07-04
EP2587385B1 (en) 2015-04-22
CN101840387B (zh) 2012-05-23
RU2013107936A (ru) 2014-09-10

Similar Documents

Publication Publication Date Title
WO2011124049A1 (zh) Usbkey装置及利用usb接口实现智能卡通信的方法
JP5358684B2 (ja) Usb及びイーサネット・コントローラ組合せ型装置
WO2011032410A1 (zh) 一种移动终端usb或充电器插入识别方法及识别装置
CN105700732B (zh) 用于传输触摸传感器信息的装置、系统和方法
WO2014166182A1 (zh) 可变充电电压的usb充电系统、充电器及智能终端
CN107409056A (zh) 使用中继器选择性启用第一通信路径和第二通信路径
WO2012037900A1 (zh) 以语音方式与外部设备通信的电子设备
CN209030353U (zh) 接口转接电路及装置
WO2013149419A1 (zh) 一种无线通信系统及无线上网装置
TW200532428A (en) Optimizing exit latency from an active power management state
CN207516993U (zh) 一种接口扩展电路及装置
CN208029095U (zh) 一种基于Dante音频网络的控制接口盒
CN106532382A (zh) 一种USB Type‑C转接器及其实现方法
CN201550129U (zh) 基于交换机构架的信号处理板
WO2010060237A1 (zh) 一种基于fpga的网络计算机
CN204835056U (zh) 一种usb传输设备
WO2018040125A1 (zh) 一种智能物联网设备
WO2016119582A1 (zh) 一种第二屏幕终端以及具有第二屏幕终端的通讯系统
CN213582152U (zh) 台式机和服务器系统的pcie信号位宽自动切换装置
CN109710549A (zh) 可编程芯片内部基于通用i/o的mipi接口电路
CN202551076U (zh) 显示装置及其转换装置
WO2018170805A1 (zh) 以太网互联电路及装置
WO2018049629A1 (zh) 一种物联网设备
CN204856485U (zh) 一种串口联网模块
CN205750414U (zh) 一种高灵敏的usb接口及其主板

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10849286

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2010849286

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 13814517

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2013107936

Country of ref document: RU

Kind code of ref document: A