ImageVerifierCode 换一换
格式:DOCX , 页数:20 ,大小:103.14KB ,
资源ID:17260585      下载积分:5 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-17260585.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(USB通信存储测试中的应用通信工程类外文翻译中英文翻译.docx)为本站会员(b****2)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

USB通信存储测试中的应用通信工程类外文翻译中英文翻译.docx

1、USB通信存储测试中的应用通信工程类外文翻译中英文翻译英文翻译 USB的互连支持数据在USB主机与USB设备之间的流动。这一章主要讲述为了简化主机上的 客户软件(Software client)与设备的功能部件(function)之间的通信而必须的主机接口(host interface)。在本章中所涉及的具体实现部份并不是必要的,这些实现部份是作为例子来阐述在响应USB设备请求时的主机系统的行为。只要USB设备并不感觉到主机行为的改变,USB主机完全可以提供一个不同的软件系统实现方法。10.1 USB主机概况10.1.1 概论图10-1展示了USB通信模型之间基本的信息流与互连关系: 逻辑的信

2、息流 实际的信息流 图 10-1通信模型层次关系图 由图10-1可见,主机与设备都被划分成不同的层次。主机上垂直的箭头是实际的信息流。设备上对应的接口是基于不同实现的。在主机与设备之间的所有通信最终都是通过USB的电缆进行,然而,在上层的水平层之间存在逻辑的主机设备信息流。主机上的客户软件和设备功能部件之间的通信是基于实际的应用需求及设备所能提供的能力。 客户软件与功能部件之间的透明通信的要求,决定主机和设备下层部件的功能以及它们的界面(interface) 这一章从主机的角度来描述上述的通信模型,图10-2描述了从主机角度看到的它与设备的连接。 主机在整个USB系统中是唯一的,它包括如下几个

3、层次。 USB总线接口 USB系统(USB System) USB客户(Client) 其中,USB总线接口处理电气及协议层的互连(详见第7章及第8章)。从互连的角度看,USB设备和USB主机都提供类似的USB总线接口,如串行接口引擎(Serial Interface Engine SIE)。由于主机在USB系统中的特殊性,USB主机上的总线接口还必须具备主机控制器的功能(Host Controller),主机控制器具有一个内集成的集线器(根集线器)提供与USB电缆的连接。USB系统(USB System)使用主机控制器来管理主机与USB设备的数据传输。USB系统与主机控制器之间的界面基于主机

4、控制器的硬件特性。USB系统层相对于主机控制器而言,处理的是以客户观点见到的数据传输及客户与设备的交互。这包括附加的USB信息,比如协议头(Protocol Wrappers)。USB系统还必须管理USB的系统资源,以使得客户的访问成为可能。 通道组(到某一接口) IRPS 配置信息 标准通道(到缺省端口地址) 硬件定义 USB 电缆 通道,代表相应层之间连接的抽象 图10-2 主机通信图 USB系统有三个主要组成部份: 主机控制器驱动(Host Controller Driver) USB驱动 (USB Driver) 主机软件 (host software) 主机控制器驱动的存在,方便地将

5、各种不同的主机控制器实现映射到USB系统,客户可以不必知道设备到底接在哪个主机控制器上就能同设备进行通信。USB驱动提供了基本的面向客户的主机界面。在HCD与USB之间的接口称为主机控制器驱动接口(Host Controller Driver Interface HCDI)。这层接口不能被客户直接访问,所以也不是由USB具体来完成的。一个典型的HCDI是由支撑各种不同主机控制器的操作系统来定义的。 USBD提供I/O请求包(I/O Request Packets)形式的数据传输,以某一特定通道来传输数据。另外,USBD为它的客户提供一个容易被支配及配置的抽象的设备。作为这种抽象的一部份,USB

6、D拥有标准通道(参见第5章及第9章)对设备进行一些标准的控制。这标准通道实现了USBD与抽象设备之间的逻辑通信。(见图10-2) 在有些操作系统中,提供了额外的非USB系统软件以支持设备的配置及设备驱动程序的加载。在这样的操作系统中,设备驱动程序应使用提供的主机软件接口而不是直接访问USBDI。客户层描述的是直接与USB设备进行交互所需要的软件包。当所有的设备都已连上系统时,这些客户就可以直接通设备进行通信。一个客户不能直接访问设备的硬件。该言之,主机可提供如下的功能 检测USB设备的连接与断开。 管理主机与设备之间的标准控制流。 管理主机与设备之间的数据流。 收集状态及一些活动的统计数字。

7、控制主机控制器与USB设备的电气接口,包括提供有限的能源。在下面的章节中,我们将较细的阐述USBDI所能提供的功能。对于特定的主机平台与操作系统下的实现接口请参照相关的操作系统手册。所有的集线器都通过状态改变通道报告它的状态的改变,其中包括设备的连上与断开等。 USBD的一类特殊客户即:集线器驱动器拥有这些状态改变通道,接收这些状态的改变。对于像设备连结这种状态改变,集线器驱动器将加载设备的驱动程序。在有些系统中,这种集线器驱动程序是操作系统提供的主机软件的一部份,它用来管理设备。 101.2控制机构控制信号可通过带内信号(in-band-singling)及带外信号(out-of-bard-

8、signaling)两种方式在主机与设备之间传输。带内信号将控制信息及数据信息混在一起用同一通道传输,以至于主机根本就没有觉察到。而外带信号是通过单独的通道进行传输。任何一个已连接的设备都有一个标准的信息通道,即标准通道。这个主机与设备之间的逻辑的连接用于传输USB的标准控制信息,比如对设备的配置信息等。这些标准通道为USB的设备提供了标准的接口,它也可以用来进行基于特定设备而不同的通信,这些通信由拥有所有这些通道的USBD作媒介。 一些特定的设备可能允许使用额外的信息通道来传输特定设备的控制信息。这些额外的信息通道与标准通道使用同样的协议,但是传递的信息是基于特定的设备的,也不是由USB具体

9、标准化的。 USBD支持和它的客户共享使用标准通道,它还提供给客户与设备相连的其它控制通道的访问。10.1.3 数据流 主机控制器在主机与USB设备之间传递数据。这些数据被看作连续的字节流。USB支持4种形式的数据传输 控制传输。 同步传输。中断传输。块传输。 有关于传输方式的额外信息请参见第5章 每个设备具有一到多个界面以用于客户与设备之间的数据传输。每个接口由一到多个在客户及设备端点之间独立传输的通道组成。USBD根据主机软件的请求来初始化这些通道和接口。当这些配置请求提出后,主机控制器将基于主机软件所提供的参数来提供服务。 每个通道基于数据传输模式和请求的有如下几个特性: 数据传输的频率

10、。 数据是以恒定速率提供还是随机出现的。 在数据传输前可延迟的时间。 在传输过程中数据的丢失是否是具有灾难性。USB设备的端口描述了与之相连接的通道的特性。USB设备端口的特性的具体描述可参照第9章。10.1.4 收集状态及活动统计数据 作为普通的为所有主机与设备之间的控制流与数据流服务的USB系统与主机控制器,一直处于随时接收状态变化及活动信息的状态,以使软件能及时接收并处理这些状态的变化。这里并不具体讲述需要被跟踪的状态信息及这些状态信息的特殊的格式。10.1.5 电气接口因素 主机为连在集线器上的USB设备提供能量。一个集线器口所能提供的能量具体值在第七章有详细说明。10.2 主机控制器

11、功能 在所有的实现中,主机控制器都必须提供基本相同的功能。主机控制器对主机及设备来讲都必须满足一定的要求。下面是主机控制器所提供的功能的概况。每种功能在下面的小节中还有具体的说明。1 状态处理(State Handling) 作为主机的一部份,主机控制器报告及管理它的状态。2串行化与反串行化 对于从主机输出的数据,主机控制器将协议及数据信息从它原始形状转换为字位流。而对于主机接收的数据主机控制器进行反向操作。 3 帧产生(Frame Generation) 主机控制器以每1ms为单位产生SOF标志包。 4 数据处理 主机控制器处理从主机输入输出数据的请求。 5 协议引擎 主机控制器支持USB具

12、体规定的协议 6传输差错控制 所有的主机控制器在发现和处理已定义的错误时展现相似的行为。 7 远程唤醒 所有的主机控制器都应具有将总线置于挂起状态及在远程唤醒事件下重新启动的能力。 8 集线器 集线器提供了标准的将多个USB设备连到主机控制器的功能。 9 主机系统接口 主机控制器在主机系统控制器之间建立一个高速的数据通道。 下面的各节将对上面提到的各功能进行详细的讨论。10.2.1 状态处理 主机控制器具有一系列USB系统管理的状态。另外,主机控制器为下面两个与USB有关的部份提供接口。 状态改变传播 根集线器 根集线器提供与其它USB设备一样的标准状态给集线器驱动器。有关USB状态与其它之间

13、的相互关系的详细讨论请参照第7章。 主机控制器的总的状态与根集线器及总体的USB密不可分。任何一个对设备来说可见的状态的改变都应反映设备状态的相应改变。从而保证主机控制器与设备之间的状态是一致的。 USB设备通过使用恢复信号请求唤醒,使设备回利已配置的状态。主机控制器本身也可以通过同样的方法产生一个恢复事件。主机控制器通过使用该实现系统的某种机制来通知主机的其它部份已产生了一个恢复事件。10.2.2 串行化与反串行化 通过物理上的传输是以字位流的形式出现的。不管是作为主机的一部份,还是作为设备的一部份,串行接口引擎(STE)处理USB传输过程中的串行化与文串行化工作。在主机上,串行接口引擎是主

14、机控制器的一部份。The basic flow and interrelationships of the USB communications model are shown in Figure 10-1Figure 10-1. Interlayer Communications ModelThe host and the device are divided into the distinct layers depicted in Figure 10-1. Vertical arrowsindicate the actual communication on the host. The c

15、orresponding interfaces on the device areimplementation-specific. All communications between the host and device ultimately occur on thephysical USB wire. However, there are logical host-device interfaces between each horizontal layer.These communications, between client software resident on the hos

16、t and the function provided by thedevice, are typified by a contract based on the needs of the application currently using the device and thecapabilities provided by the device.This client-function interaction creates the requirements for all of the underlying layers and their interfaces.Universal S

17、erial Bus Specification Revision 1.1208This chapter describes this model from the point of view of the host and its layers. Figure 10-2 describes,based on the overall view introduced in Chapter 5, the hosts view of its communication with the device.Figure 10-2. Host CommunicationsUniversal Serial Bu

18、s Specification Revision 1.1209There is only one host for each USB. The major layers of a host consist of the following:_ USB bus interface_ USB System_ Client.The USB bus interface handles interactions for the electrical and protocol layers (refer to Chapter 7 andChapter 8). From the interconnect p

19、oint of view, a similar USB bus interface is provided by both the USBdevice and the host, as exemplified by the Serial Interface Engine (SIE). On the host, however, the USBbus interface has additional responsibilities due to the unique role of the host on the USB and isimplemented as the Host Contro

20、ller. The Host Controller has an integrated root hub providing attachmentpoints to the USB wire.The USB System uses the Host Controller to manage data transfers between the host and USB devices.The interface between the USB System and the Host Controller is dependent on the hardware definition ofthe

21、 Host Controller. The USB System, in concert with the Host Controller, performs the translationbetween the clients view of data transfers and the USB transactions appearing on the interconnect. Thisincludes the addition of any USB feature support such as protocol wrappers. The USB System is alsoresp

22、onsible for managing USB resources, such as bandwidth and bus power, so that client access to theUSB is possible.The USB System has three basic components:_ Host Controller Driver_ USB Driver_ Host Software.The Host Controller Driver (HCD) exists to more easily map the various Host Controller implem

23、entationsinto the USB System, such that a client can interact with its device without knowing to which HostController the device is connected. The USB Driver (USBD) provides the basic host interface (USBDI) forclients to USB devices. The interface between the HCD and the USBD is known as the Host Co

24、ntrollerDriver Interface (HCDI). This interface is never available directly to clients and thus is not defined by theUSB Specification. A particular HCDI is, however, defined by each operating system that supports variousHost Controller implementations.The USBD provides data transfer mechanisms in t

25、he form of I/O Request Packets (IRPs), which consist ofa request to transport data across a specific pipe. In addition to providing data transfer mechanisms, theUSBD is responsible for presenting to its clients an abstraction of a USB device that can be manipulated forconfiguration and state managem

26、ent. As part of this abstraction, the USBD owns the default pipe (seeChapter 5 and Chapter 9) through which all USB devices are accessed for the purposes of standard USBcontrol. This default pipe represents a logical communication between the USBD and the abstraction of aUSB device as shown in Figur

27、e 10-2.In some operating systems, additional non-USB System Software is available that provides configurationand loading mechanisms to device drivers. In such operating systems, the device driver shall use theprovided interfaces instead of directly accessing the USBDI mechanisms.The client layer des

28、cribes all the software entities that are responsible for directly interacting with USBdevices. When each device is attached to the system, these clients might interact directly with theperipheral hardware. The shared characteristics of the USB place USB System Software between the clientand its dev

29、ice; that is, a client cannot directly access the devices hardware.Universal Serial Bus Specification Revision 1.1210Overall, the host layers provide the following capabilities:_ Detecting the attachment and removal of USB devices_ Managing USB standard control flow between the host and USB devices_

30、 Managing data flow between the host and USB devices_ Collecting status and activity statistics_ Controlling the electrical interface between the Host Controller and USB devices, including theprovision of a limited amount of power.The following sections describe these responsibilities and the requir

31、ements placed on the USBDI in greaterdetail. The actual interfaces used for a specific combination of host platform and operating system aredescribed in the appropriate operating system environment guide.All hubs (see Chapter 11) report internal status changes and their port change status via the status changepipe. This includes a notification of when a USB device is attached to or removed from one of their ports.A USBD client generically known as the hub driver receives these notifications as owner of the hubsStatus Change pipe. For device attachments, the

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2