基于μcos-ⅱ的usb ohci主机协议栈的实现-implementation of usb ohci host protocol stack based on μ cos - ⅱ.docxVIP
- 6
- 0
- 约4.8万字
- 约 70页
- 2018-05-18 发布于上海
- 举报
基于μcos-ⅱ的usb ohci主机协议栈的实现-implementation of usb ohci host protocol stack based on μ cos - ⅱ
摘要通用串行总线(USB)是一种计算机外围串行通信接口标准,已经成为现代计算机必备的接口之一。开放主机控制器接口(OHCI)是一个在嵌入式系统中得到广泛应用的USB主机控制器接口规范。μC/OS-II是一个简单高效的嵌入式实时操作系统。基于μC/OS-II 的USBOHCI主机协议栈占用系统资源少,适合应用在资源紧张的嵌入式系统中,为产品提供USB设备接入功能。目前已有的USBOHCI主机协议栈在功能、资源占用、成本和可维护性等方面通常不能满足商业化产品的需要。本文在AT91SAM9260硬件平台上实现了一个较完整的基于μC/OS-II操作系统的USB OHCI 主机协议栈。首先进行了总体设计和模块划分,然后进行了主机控制器驱动模块、USB 驱动模块和类驱动模块的设计和实现。在主机控制器驱动模块中,通过对主机控制器的管理和控制,实现了USB底层数据传送功能。在USB驱动模块中,实现了USB 通信功能和USB设备管理功能。在类驱动模块中,实现了大容量存储类协议和人机接口设备类协议。最后,搭建了一个测试平台,设计了一系列测试用例,验证了主机协议栈的有效性。实验结果表明,该USB OHCI 主机协议栈的可行性和有效性达到了设计要求。关键词:通用串行总线开放主机控制器接口μC/OS-II嵌入式系统AbstractTheUniversalSerialBus(USB)isanexternalserialcommunicationinterfacestandardofcomputer.It hasbeenoneoftheabsolutelynecessarilyinterfacesof moderncomputers.TheOpenHostControllerInterface(OHCI)isanUSBhostcontrollerinterfacespecificationwhichhasalsobeenwidelyusedinembeddedsystem.The μC/OS-IIisasimpleandeffectivelyreal-timeoperatingsystemusedinembeddedproducts.TheUSBOHCIhoststackbasedonμC/OS-IIprovidestheaccessabilitytoUSBdevicesforembeddedproductswhoseresourceisverylimited,becauseofitsverylowresourceusage.TheexistingUSBOHCIhoststackusuallydoesntmeettherequirementsoftheactualproductinfunction,resourceusage,costandmaintainability.ThispaperprovidesarelativelycompleteimplementationofanUSBOHCIhoststackbasedonμC/OS-IIoperatingsystemforAT91SAM9260hardwareplatform.First, thepaperprovidesthearchitecturedesignandthemoduledefinitionforthesystem.Second,thepaperprovidestheimplementationsofeachmodule:HostControllerDriver,USBDriverandClassDriver.TheHostControllerDrivermoduleimplementstheUSBlow-leveldatatransferfunction,theUSBDrivermoduleimplementstheUSB communicationfunctionandtheUSBdevicemanagementfunction,andtheClassDrivermoduleimplementstheMassStorageClassprotocolandHIDClassprotocol.Last,thepaperbuildsatestbenchandprovidesseveraltestcasestoverifythevalidityoftheUSBOHCIhoststack.TheexperimentresultshowsthattheUSBOHCIhoststackhasachievedthedesignrequirementsinitsfeasibilityandvalidity.Keyword:UniversalSerialBusOpenHostControllerInter
您可能关注的文档
- 基于webrtc语音引擎的会议混音技术分析-analysis of conference mixing technology based on webrtc voice engine.docx
- 机构养老问题探究——以泗水县为例-probe into the problem of institutional pension —— taking surabaya county as an example.docx
- 基于webservice的招商引资视频会议系统-video conference system of investment promotion and capital introduction based on web service.docx
- 基于webservices应用的安全机制分析-analysis of security mechanism based on web services application.docx
- 基于webservice的应用集成关键技术分析-analysis of key technologies of application integration based on web service.docx
- 基于webgis与遗传-禁忌算法木材物流网络优化-optimization of wood logistic network based on webgis and genetic - tabu algorithm.docx
- 基于webservice的bs架构的在线考试系统的设计与实现-design and implementation of bs - based online examination system based on web service.docx
- 基于webservice物流跟踪决策系统实现-implementation of logistic tracking decision system base on web service.docx
- 基于web-svg的电网信息数据展示的分析与应用-analysis and application of grid information data display based on we b - svg.docx
- 基于web代理的访问控制网关系统分析与实现-analysis and implementation of access control gateway system based on web proxy.docx
- (2026春新版)部编版八年级语文下册《第一单元》PPT课件.pptx
- 2018电力监控系统网络安全监测装置技术规范.docx
- 2022电力监控系统安全防护方案审核要点.docx
- 2014电力电缆光伏系统EN 50618欧标.docx
- (2026春新版)人教版二年级数学下册《第三单元 万以内数的认识》教案.docx
- (2026春新版)人教版二年级数学下册《第四单元 万以内的加法和减法》教案.docx
- (2026春新版)人教版二年级数学下册《综合与实践 时间在哪里》教案.docx
- (2026春新版)苏教版二年级数学下册《综合与实践 时间有多长》教案 .pdf
- (2026春新版)部编版三年级语文下册第3单元(教案).docx
- (2026春新版)部编版三年级语文下册第8单元(教案).docx
原创力文档

文档评论(0)