




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
USBHostSystemClientdriversoftwareUniversalBusDriver(USBD)HostControllerDriver(HCD)HostController(HC)USBDeviceSystemsoftwareHardwareHCIEhci/ohci/uhci/xhci1精選2021版課件TypeLowSpeed 1.1Mb/S (e.g.,USBMS/KB)FullSpeed 12Mb/S
(e.g.,USBflash)HighSpeed 480Mb/SSuperSpeed5Gb/SUSB1.1(UHCI/OHCI)USB2.0(EHCI)
ICH-7has4USB1.1Controllers&1USB2.0Controller,andsupports8USBports.
PCHhas2USB2.0Controllers&2USB2.0 USB3.0(XHCI)2精選2021版課件ICH7.port1port2port3port4port5port6port7port8UHCIControllerUHCIControllerUHCIControllerUHCIControllerEHCIController3精選2021版課件PCH.
TheHubsreplacethefunctionalityoftheUHCIcontrollersbyconvertinghigh-speedtrafficintolowandfull-speedtraffic.4精選2021版課件Terms.5精選2021版課件EndpointUSB通信最基本的形式是通過USB設(shè)備里一個(gè)叫Endpoint的東西,Endpoint是通信的發(fā)送或者接收點(diǎn)。Endpoint有確定的單一的方向,要么為in(Device->Host),要么為out(Host->Device)。注意有一個(gè)例外:USB協(xié)議規(guī)定每個(gè)設(shè)備都必須有Endpoint0,它是雙向的,USB利用它來實(shí)現(xiàn)缺省的控制管道(ControlPipe),從而控制設(shè)備。Endpoint共有四種類型:Control,Bulk,Interrupt,Isochronous.6精選2021版課件PipeAUSBpipeisanassociationbetweenanendpointonadeviceandsoftwareonthehost.
Pipesrepresentthe
abilitytomovedatabetweensoftwareonthehostviaamemorybufferandanendpointonadevice.7精選2021版課件Frame&MicroFrameUSBestablishesa1millisecondtimebasecalledaframeonafull-/low-speedbusanda125μstimebasecalledamicroframeonahigh-speedbus.A(micro)framecancontainseveraltransactions.8精選2021版課件TransferTypes對(duì)應(yīng)于四種不同的Endpoint同樣有四種不同的傳輸方式:控制傳輸(ControlTransfer),中斷傳輸(InterruptTransfer),批量傳輸(BulkTransfer),等時(shí)傳輸(IsochronousTransfer).控制傳輸(ControlTransfer)通常用于配置設(shè)備,獲取設(shè)備信息,發(fā)送命令到設(shè)備,或者獲取設(shè)備的狀態(tài)報(bào)告等,總之就是用來傳送控制信息的.中斷傳輸(InterruptTransfer)用來以一個(gè)固定的速率傳送少量的數(shù)據(jù),USB鍵盤和USB鼠標(biāo)使用的就是這種方式.9精選2021版課件批量傳輸(BulkTransfer)用來傳輸大量的數(shù)據(jù),確保沒有數(shù)據(jù)丟失,并不保證在特定的時(shí)間內(nèi)完成。U盤使用的就是批量傳輸,咱們用它備份數(shù)據(jù)時(shí)需要確保數(shù)據(jù)不能丟,而且也不能指望它能在一個(gè)固定的比較快的時(shí)間內(nèi)拷貝完.massstoragedevice(U盤).等時(shí)傳輸(IsochronousTransfer)同樣用來傳輸大量的數(shù)據(jù),但并不保證數(shù)據(jù)是否到達(dá),以穩(wěn)定的速率發(fā)送和接收實(shí)時(shí)的信息,對(duì)傳送延遲非常敏感。常用于音頻和視頻一類的設(shè)備,這類設(shè)備期望能夠有個(gè)比較穩(wěn)定的數(shù)據(jù)流.camera.Detail:USB2.0SPEC5.5&5.6&5.7&5.8Difference:Bandwidth&Priority&errorretry10精選2021版課件ConfigurationConfiguration:AUSBdevicemustbeconfiguredbeforeitsfunction(s)maybeused.Interface:
Withinasingleconfiguration,adevicemaysupportmultipleinterfaces.Aninterfaceisarelatedsetofendpointsthatpresentasinglefeatureorfunctionofthedevicetothehost.Alternatesettings:aninterfacewithinaconfigurationmayhavealternatesettingsthatredefinethenumberorcharacteristicsoftheassociatedendpoints.Endpoint:
DatamaybetransferredbetweenaUSBdeviceendpointandthehostinoneoffourways.Anendpointnumbermaybeusedfordifferenttypesofdatatransfersindifferentalternatesettings.Chooseaproperlyfunction/featuretoUSBdevice.USB2.0spec9.2.311精選2021版課件USBDeviceStates
&Enumeration12精選2021版課件13精選2021版課件Attach&Powered&Defaultstate由portstatusregister來控制和體現(xiàn)。
Address&configuredstate由USBstandardcommand來配置。
Note:differentfromgenericHUB.14精選2021版課件SuspendAlldevicebeginthetransitiontotheSuspendstateaftertheyseeaconstantIdlestateontheirupstreamfacingbuslinesformorethan3.0ms.Globalsuspend:theentirebusisplacedintheSuspendstate.Selectivesuspend:
SegmentsofthebuscanbeselectivelysuspendedbysendingthecommandSetPortFeature(PORT_SUSPEND)tothehubporttowhichthatsegmentisattached.15精選2021版課件PoweredstateThehubtowhichtheUSBdeviceisnowattachedinformsthehostoftheeventviaareplyonitsstatuschangepipe.Ahubportmustbepoweredinordertodetectportstatuschanges,includingattachanddetach.thehostthenwaitsforatleast100mstoallowcompletionofaninsertionprocessandforpoweratthedevicetobecomestable.16精選2021版課件DefaultstateWhentheresetsignalisreleased,theporthasbeen
enabled.Afterreceivingareset,thedeviceisthenaddressableatthe
defaultaddress.Whentheresetprocessiscomplete,theUSBdeviceisoperatingatthecorrectspeed.low-andfull-speedisdeterminedbythedeviceterminationresistors.Adevicecapableofhigh-speedoperationmustresetsuccessfullyatfull-speedwheninanelectricalenvironmentthatisoperatingatfull-speed.17精選2021版課件AddressstateAllUSBdevicesareaccessedbyaUSBaddress.AllUSBdevicesmustsupportendpointzerotowhichtheUSBdevice’sUSBcontrolpipewillbeattached.BeforetheUSBdevicereceivesauniqueaddress,itsDefaultControlPipeisstillaccessibleviathedefaultaddress.ThehostassignsauniqueaddresstotheUSBdevice,movingthedevicetotheAddressstate.SetAddresscommandisastandardUSBcommand.HowtosendastandardUSBcommandunderXHCI/EHCI/UHCI/OHCIenvironment.
18精選2021版課件ConfiguredstateGet
ConfigurationdescriptorbygetConfigurationcommand.thehostassignsaconfigurationvaluetothedevice.ThedeviceisnowintheConfiguredstateandalloftheendpointsinthisconfigurationhavetakenontheirdescribedcharacteristics.SetConfigurationcommandisastandardUSBcommand.19精選2021版課件SetInterfaceWithinasingleconfiguration,adevicemaysupportmultipleinterfaces.Aninterfaceisarelatedsetofendpointsthatpresentasinglefeatureorfunctionofthedevicetothehost.SomeUSBdeviceshaveconfigurationswithinterfacesthathavemutuallyexclusivesettings.Thisrequestallowsthehosttoselectthedesiredalternatesetting.SetinterfacecommandisastandardUSBcommand.20精選2021版課件USBDeviceRequests
AllUSBdevicesrespondtorequestsfromthehostonthedevice’sDefaultControlPipe.21精選2021版課件StandardDeviceRequests
22精選2021版課件DescriptorsDevicedescriptor:generalinformationaboutaUSBdevice.AUSBdevicehasonlyonedevicedescriptor.DeviceDescriptor:bLength:18bDescriptorType:1DeviceDescriptorbcdUSB:512bDeviceClass:0xffmassStor\HID\HubbDeviceSubClass:0xffbDeviceProtocol:0xffbMaxPacketSize0:0x40Maxpacketsizeforendpoint0.idVendor:0x4b4VendorID.idProduct:0x8613ProductID.bcdDevice:0xa001FWversion.iManufacturer:0x0iProduct:0x0iSerialNumber:0x0bNumConfigurations:0x1Numberofconfigurations.Example:23精選2021版課件DescriptorsConfigu
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025至2031年中國特優(yōu)米黃花崗巖行業(yè)投資前景及策略咨詢研究報(bào)告
- 2025至2031年中國雙柄奶鍋行業(yè)投資前景及策略咨詢研究報(bào)告
- 2025至2031年中國五香豆干行業(yè)投資前景及策略咨詢研究報(bào)告
- 2025至2031年中國三元乙丙彩色膠粒行業(yè)投資前景及策略咨詢研究報(bào)告
- 2025至2030年中國龜爪電工工具數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國防彈變色彩柱數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國阻燃劑聚磷酸銨數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國電腦數(shù)控?zé)o梭絎紉機(jī)數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國濕法直簡(jiǎn)式帶多簡(jiǎn)冷卻器回轉(zhuǎn)窯數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國法蘭式渦輪傳動(dòng)硬密封蝶閥數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- SH/T 1627.1-1996工業(yè)用乙腈
- GB/T 5534-2008動(dòng)植物油脂皂化值的測(cè)定
- GB/T 12771-2019流體輸送用不銹鋼焊接鋼管
- 測(cè)量管理體系內(nèi)審檢查表
- 工程驗(yàn)收及移交管理方案
- 心臟手術(shù)麻醉的一般流程課件
- 圖片編輯概述課件
- 2023年岳陽職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)技能考試筆試題庫及答案解析
- 信號(hào)與系統(tǒng)復(fù)習(xí)題及答案
- 北師大版八年級(jí)數(shù)學(xué)上冊(cè)《認(rèn)識(shí)無理數(shù)(第2課時(shí))》參考課件2
- 中級(jí)建構(gòu)筑物消防員理論綜合模擬題01原題
評(píng)論
0/150
提交評(píng)論