EP2342645A1 - Périphérique usb capable de s'adapter automatiquement aux spécificités d'une machine hôte - Google Patents
Périphérique usb capable de s'adapter automatiquement aux spécificités d'une machine hôteInfo
- Publication number
- EP2342645A1 EP2342645A1 EP09736962A EP09736962A EP2342645A1 EP 2342645 A1 EP2342645 A1 EP 2342645A1 EP 09736962 A EP09736962 A EP 09736962A EP 09736962 A EP09736962 A EP 09736962A EP 2342645 A1 EP2342645 A1 EP 2342645A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- usb
- line
- usb device
- communication mode
- timer
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Definitions
- the present invention relates to Universal Serial Bus, also called USB. It relates particularly to USB devices capable of automatically adapting to USB capability of the connected host.
- the Universal Serial Bus Specification, Revision 2.0, April 27, 2000 is the product of a consortium of companies .
- the document defines an industry-standard
- Universal Serial Bus describes the bus attributes, the protocol definition, types of transactions, bus management, and the programming interface required to design and build systems and peripherals that are compliant with this standard.
- the USB is a cable bus that supports data exchange between a ho s t computer and a wide range of simultaneously accessible peripherals.
- the attached peripherals share USB bandwidth through a host- scheduled, token based protocol .
- the bus allows peripherals to be attached, configured, used, and detached while the host and other peripherals are in operation .
- the USB transfers signal and power over a four- wire cable.
- the cable carries Vbus and ground wires to deliver power to devices.
- a USB host detects that a device has been attached to one of its ports by monitoring the differential data lines, after power has been applied to the port.
- a device When no device is attached to a host USB port, from 14.25 K ⁇ to 24.80 K ⁇ pull-down resistors on the D+ and D- lines ensure that both data lines are near ground.
- Full speed USB devices must include a pull-up resistor on D+ .
- electric current flows on the D+ line across the voltage divider created by the host pull-down resistor and the device pull-up resistor.
- the pull-down resistor value is from 14.25 K ⁇ to 24.80 K ⁇ and the device pull-up resistor is a value from 900 ⁇ to 1.575 K ⁇ , a data line will rise more than 90% of Vbus.
- the host detects that the D+ line approaches Vbus, it detects that a device has been attached. In the case of an attachment, the host enables the port and addresses the USB device through the device control pipe at the default address. The host assigns a unique USB address to the device.
- the D+ is a differential signal.
- the D+ line is the bus where the data communication takes place.
- a preset value for example 0.8 volt
- the host detects a device detachment.
- the D+ line rises above a preset value (for example 2.0 volts) for longer than a preset duration (for example 2.5 milliseconds) the host recognizes a device attachment. The device must then remain idle for greater than 2 milliseconds.
- the Host polls each port periodically to check for device attachment and detachment .
- USB-InterChip In order to work with a telecom handset, a USB device must comply with USB-InterChip supplement to USB 2.0 specification. In order to work with a Personal Computer, a USB device must comply with USB2.0 standard requirements. According to chapter 7 of USB2.0 standard, Vbus is equal to 5 volt. According to USB- Interchip supplement, Vbus may be comprised in the range 1 volt to 3 volt and a specific pull up resistor must be set to 60 K ⁇ on the D+ line when an USB reset is performed by Host and detected by the USB device. A problem is to be able to use a USB device with both a Telecom handset and a Personal Computer.
- USB-InterChip When a USB device compliant with USB-InterChip is plugged to a Personal Computer, the pull up resistor equal to 60 K ⁇ is activated on the D+ line. As a consequence the Personal Computer interprets the resulting D+ line level as a detachment of the USB device. Thus a USB device compliant with USB-InterChip is not functional when plugged to a Personal Computer. In particular there is a need to have a Universal Integrated Circuit Card (UICC according to smart card Telecom standards) which can be equally connected to a handset and to a Personal Computer.
- UICC Universal Integrated Circuit Card
- a USB device plugged to a host is capable of detecting whether it is connected to a USB 2.0 or a USB-InterChip host.
- the USB device plugged to a host is capable of automatically switching between a first configuration in which the device complies with USB- InterChip standard requirements, and a second configuration in which the device complies with USB 2.0 standard requirements.
- the object of the present invention is a USB device intended to be connected to a host machine.
- the USB device is intended to be in first and second communication modes and comprises a microprocessor, a timer, and a communication interface able to manage a Vbus line, a D+ and/or a D- line.
- the USB device comprises an operating system, a working memory, and a non volatile memory intended to comprise a preset duration.
- the USB device comprises first, second, third and fourth means.
- the first means capable of activating a first pull up resistor on said D+ or D- line when the USB device is set to the first communication mode.
- the second means is capable of starting the timer when a USB reset is detected on the D+ or D- line.
- the third means is capable of switching the USB device to the second communication mode when the timer reaches the preset duration.
- the fourth means is capable of activating a second pull up resistor on said D+ or D- line when the USB device is set to the second communication mode.
- the USB device may comprise a fifth means capable of stopping the timer when a USB descriptor is detected on the D+ line.
- the first communication mode may correspond to USB-InterChip standard and the second communication mode may correspond to USB 2.0 standard.
- the USB device may have a default mode corresponding to the first communication mode.
- the USB device may be a Universal integrated Circuit Card.
- Another object of the invention is a method of managing a USB device comprising a preset duration, a timer and a communication interface capable of managing a Vbus line and a D+ and / or D- line.
- the method comprises the following steps:
- the method may comprise the further step of stopping the timer when a USB descriptor is detected on D+ or D- line.
- the first communication mode may correspond to
- USB-InterChip standard and the second communication mode may correspond to USB 2.0 standard.
- FIG. 2 depicts schematically an example of a step sequence allowing the automatic switching from first communication interface settings to second communication interface settings for a USB device according to the invention.
- the invention may apply to any types of USB devices intended to be used with both hosts compliant with USB 2.0 standard and hosts compliant with USB-InterChip standards.
- the invention may also apply to USB devices intended to be used with hosts compliant with further release of the above referenced two standards which would keep the same kind of requirements on D+ line and on D- line.
- An advantage of the invention is to provide a USB device which may be used with currently existing hosts without any change on host side.
- the invention avoids requiring a new USB reader which is compliant with the two targeted standards. Such a reader is costly and requires a heavy management to be deployed on the field.
- the invention Since the invention does not detect USB Host type only with Vbus difference between USB2.0 and USB- InterChip, the invention has the two following advantages. First the invention avoids powering the USB device memory with a Vbus equal to 5 volt. Such a power supply may destroy a NAND memory for example. Secondly the invention provides a solution allowing the USB device to work with any kinds of handset, in particular with handsets which do not comply with a dynamic voltage selection.
- FIG. 1 shows the architecture of a portable USB device SC according to a first embodiment of the invention.
- the USB device SC is a SIM smart card intended to be connected to a personal computer HM via a USB port PO.
- the USB device SC comprises a working memory MEMl o f RAM t ype , a n o n vo l a t i l e memo r y MEM2 , a microprocessor MP, a communication interface IN and a timer TR.
- the portable electronic device SC is intended to exchange data according to USB standards through the communication interface IN.
- the USB device SC comprises an operating system OS.
- the non volatile memory MEM2 may be NAND flash or EEPROM memory.
- the non volatile memory MEM2 is intended to store a preset duration PD.
- the USB device SC comprises five means.
- the first means Ml is able to activate a first pull up resistor Pl on the D+ line.
- the second means M2 is able to start the timer TR when a USB reset is detected on the D+ line.
- the third means M3 is able to switch the communication mode of the USB device SC from USB- InterChip settings to USB 2.0 settings.
- the fourth means M4 is able to activate a second pull up resistor P2 on the D+ line.
- the fifth means M5 is able to stop the timer TR when a USB descriptor is detected on D+ line.
- a USB request contains a USB descriptor. When the host sends a USB request to the USB device SC, a USB descriptor is present on D+ .
- the five means Ml to M5 are shown as five distinct elements having each one a specific function. These five elements may be merged in one or several hardware or software elements.
- the present invention may be implemented with any combinations of one or several elements providing the five functions.
- the USB device SC is able to communicate in USB full-speed mode through the communication interface IN.
- the USB device SC may be able to communicate in USB low-speed mode through the communication interface IN.
- the pull-up resistor Pl should be activated on the D- line by the first means Ml.
- the fourth means M4 is able to activate a second pull up resistor P2 on the D- line and the fifth means M5 is able to stop the timer TR when a USB descriptor is detected on D- line
- Figure 2 is a flow chart showing a method for automatically switching a USB device SC from first communication interface settings to second communication interface settings.
- the USB device SC is assumed to have default communication settings corresponding to USB-InterChip standard.
- the USB device SC is plugged into the host machine HM compliant with USB 2.0 standard.
- the host machine is a personal computer.
- the host machine may be any host providing USB host features of USB 2.0 standard.
- the device SC generates a USB attachment on the D+ line through the communication interface IN by connecting pull up Pl.
- the corresponding change of voltage on D+ line trigs a USB Reset on the host machine HM side.
- the host machine HM sets the D+ line to a low level at step S3.
- a pull up resistor P2 is activated on the device SD side at step S4 and a timer TR is started on the device SC side at step S5.
- the equivalent pull up resistor P1+P2 is activated on the D+ line.
- the equivalent pull up resistor P1+P2 corresponds to the default communication settings.
- the P1+P2 value is 60 K ⁇ corresponding to the USB- InterChip standard.
- step S5 the device SC enters a loop that can be stopped by two kinds of events: the receipt of a USB descriptor coming from the host machine HM or a timeout.
- the device checks if a USB descriptor has been received from the connected host machine HM. If no USB descriptor has been received, the device SC compares the timer TR with a preset duration PD at step S7.
- the preset duration PD is equal to 2 seconds.
- the preset duration PD may be in the range [Is, ..., 3s] .
- step S7 If the timer TR did not reach the preset duration PD at step S7, the device SC comes back to step S6. If a USB descriptor has been received at step S6, the timer TR is stopped at step S9.
- the communication settings are switched to USB 2.0 standard at step S8.
- the change of communication settings corresponds to the selection of a second pull up resistor P2 intended to be used on the line D+ .
- the value of the second pull up resistor P2 should be in the range 900 ⁇ to 1575 ⁇ .
- the device SC comes back to the step S2 where, a USB attachment is generated on the D+ line trough the communication interface IN.
- the pull up resistor P2 is activated on the device SD side at step S4 since the current communication mode of the USB device is USB 2.0.
- a timer TR is also started on the device SC side at step S5.
- a SET_ADDRESS is by the personal computer.
- the SET_ADDRESS request contains a USB descriptor which is sent on the D+ line.
- the device checks if a USB descriptor has been received from the connected host. Since a USB descriptor has been received at step S6, the timer TR is stopped at step S9. After the step S9, the device SC has communication settings adapted to the USB 2.0 standard and may work with the connected personal computer.
- the device SC When the USB device SC is plugged into a handset the device SC generates a USB attachment on the D+ line through the communication interface IN by adding pull up Pl.
- the corresponding change of voltage on D+ line trigs a USB Reset on the host machine HM side.
- the host machine HM sets the D+ line to a low level at step S3 and removes its RDP pull down resistor.
- a pull up resistor P2 When the device SC detects the Reset on D+ line, a pull up resistor P2 is activated on the device SD side at step S4 and a timer TR is started on the device SC side at step S5. Only the pull up resistor RPUl + RPU2 is used to polarize D+ line. As a consequence, the handset detects a correct level on the D+ line.
- the handset sends USB requests to the device SC.
- a SET_ADDRESS is sent by the handset.
- the SET ADDRESS request contains a USB descriptor which is sent on the D+ line.
- the device checks if a USB descriptor has been received from the connected handset. Since a USB descriptor has been received at step S6, the timer TR is stopped at step S9. After the step S9, the device SC may correctly work with the connected handset.
- the USB device SC is able to communicate in USB low-speed mode, the device SC can behave according to an example similar to that of Figure 2 by replacing D+ line by D- line.
- the invention has been described for devices compliant with USB 2.0 standard.
- the invention also applies to devices compliant with USB 1.x standard.
- the invention applies to devices compliant with USB 1.0 or USB 1.1 standard.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP09736962A EP2342645A1 (fr) | 2008-10-27 | 2009-10-19 | Périphérique usb capable de s'adapter automatiquement aux spécificités d'une machine hôte |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP08305738A EP2180410A1 (fr) | 2008-10-27 | 2008-10-27 | Périphérique USB capable de s'adapter automatiquement aux spécificités d'une machine hôte |
PCT/EP2009/063693 WO2010049310A1 (fr) | 2008-10-27 | 2009-10-19 | Dispositif usb apte à s'adapter automatiquement à une capacité usb d'un hôte connecté |
EP09736962A EP2342645A1 (fr) | 2008-10-27 | 2009-10-19 | Périphérique usb capable de s'adapter automatiquement aux spécificités d'une machine hôte |
Publications (1)
Publication Number | Publication Date |
---|---|
EP2342645A1 true EP2342645A1 (fr) | 2011-07-13 |
Family
ID=40466945
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP08305738A Withdrawn EP2180410A1 (fr) | 2008-10-27 | 2008-10-27 | Périphérique USB capable de s'adapter automatiquement aux spécificités d'une machine hôte |
EP09736962A Withdrawn EP2342645A1 (fr) | 2008-10-27 | 2009-10-19 | Périphérique usb capable de s'adapter automatiquement aux spécificités d'une machine hôte |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP08305738A Withdrawn EP2180410A1 (fr) | 2008-10-27 | 2008-10-27 | Périphérique USB capable de s'adapter automatiquement aux spécificités d'une machine hôte |
Country Status (2)
Country | Link |
---|---|
EP (2) | EP2180410A1 (fr) |
WO (1) | WO2010049310A1 (fr) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8631284B2 (en) | 2010-04-30 | 2014-01-14 | Western Digital Technologies, Inc. | Method for providing asynchronous event notification in systems |
US8762682B1 (en) | 2010-07-02 | 2014-06-24 | Western Digital Technologies, Inc. | Data storage apparatus providing host full duplex operations using half duplex storage devices |
CN102123380B (zh) * | 2011-03-15 | 2013-06-05 | 上海艾为电子技术有限公司 | 无线终端及其多sim卡连接装置 |
US8850097B2 (en) * | 2012-07-16 | 2014-09-30 | Verifone, Inc. | USB apparatus and embedded system incorporating same |
CN104346305B (zh) * | 2013-08-08 | 2017-06-16 | 联芯科技有限公司 | 普通sim卡控制器支持低阻抗sim卡的方法和系统 |
WO2016043693A1 (fr) * | 2014-09-15 | 2016-03-24 | Micro Motion, Inc. | Procédé et appareil de commande d'un mode d'un dispositif |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6439464B1 (en) * | 2000-10-11 | 2002-08-27 | Stmicroelectronics, Inc. | Dual mode smart card and associated methods |
KR100764744B1 (ko) * | 2006-07-21 | 2007-10-08 | 삼성전자주식회사 | 호스트의 인터페이스 프로토콜을 판별하는 디바이스 그것을포함하는 아이씨카드 |
-
2008
- 2008-10-27 EP EP08305738A patent/EP2180410A1/fr not_active Withdrawn
-
2009
- 2009-10-19 EP EP09736962A patent/EP2342645A1/fr not_active Withdrawn
- 2009-10-19 WO PCT/EP2009/063693 patent/WO2010049310A1/fr active Application Filing
Non-Patent Citations (1)
Title |
---|
See references of WO2010049310A1 * |
Also Published As
Publication number | Publication date |
---|---|
WO2010049310A1 (fr) | 2010-05-06 |
EP2180410A1 (fr) | 2010-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3309998B1 (fr) | Équipement de fourniture d'énergie et procédé et appareil d'alimentation électrique par câble ethernet | |
US7085876B2 (en) | USB controlling apparatus for data transfer between computers and method for the same | |
US7293118B1 (en) | Apparatus and method for dynamically providing hub or host operations | |
US6145019A (en) | Unconfigured device that automatically configures itself as the primary device if no other unconfigured device is present | |
WO2010049310A1 (fr) | Dispositif usb apte à s'adapter automatiquement à une capacité usb d'un hôte connecté | |
US8726051B2 (en) | Computer system for supplying electric power to external apparatus and control method thereof | |
US9081705B2 (en) | Methods and apparatus for reliable detection and enumeration of devices | |
US6460093B1 (en) | Automatic configuration of primary and secondary peripheral devices for a computer | |
CN109672950B (zh) | 一种基于Type-C耳机的省电电路和省电方法 | |
US20140280960A1 (en) | Methods and apparatus for dynamically allocating devices between multiple controllers | |
US8549337B2 (en) | Memory card control device and method for controlling the same | |
CN100377132C (zh) | 通信设备及其控制方法 | |
CN112951315A (zh) | 一种兼容nvme\ahci双协议硬盘测试装置及方法 | |
US7461177B2 (en) | Device functionalities negotiation, fallback, backward-compatibility, and reduced-capabilities simulation | |
CN102073602A (zh) | 计算机系统、连接控制装置及连接与断开方法 | |
US20150032909A1 (en) | Using usb signaling to trigger a device to enter a mode of operation | |
CN104899177A (zh) | 一种i2c设备控制方法及系统 | |
CN111813596A (zh) | 芯片重启方法、装置及计算设备 | |
KR100764743B1 (ko) | 리셋 제어 유닛을 구비한 메모리 카드 및 그것의 리셋 제어방법 | |
US20100031087A1 (en) | Method of control in a system having a media reader | |
CN209821822U (zh) | 一种pcie设备热插拔的控制电路及计算机 | |
CN105404467A (zh) | 便携式电子装置及其中用户数据的存取方法 | |
CN111124976A (zh) | 一种具有通信和防止漏电功能的智能卡及其工作方法 | |
CN111966195B (zh) | 一种启动控制电路及方法 | |
CA2702290C (fr) | Echange de donnees entre un terminal de paiement electronique et un outil de maintenance par une liaison usb |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
17P | Request for examination filed |
Effective date: 20110527 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO SE SI SK SM TR |
|
AX | Request for extension of the european patent |
Extension state: AL BA RS |
|
DAX | Request for extension of the european patent (deleted) | ||
GRAP | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOSNIGR1 |
|
INTG | Intention to grant announced |
Effective date: 20131023 |
|
GRAS | Grant fee paid |
Free format text: ORIGINAL CODE: EPIDOSNIGR3 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
18D | Application deemed to be withdrawn |
Effective date: 20140304 |