文档详情

USB力反馈设备驱动-简体中文..doc

发布:2017-01-08约5.16万字共42页下载文档
文本预览下载声明
南台科技大学 电子工程研究所 硕士学位论文 微软窗口系统之USB 装置驱动程序产 生器之研制 Design and Implementation of USB Device Driver Generator for Windows Operating Systems 研 究 生: 张众函 指导教授: 王立洋 中华民国九十五年六月 iv 摘要 在操作系统中,驱动程序扮演着不可或缺的角色,无论任何硬件都需要相对 应的驱动程序才能在操作系统中正常运作,然而撰写驱动程序往往是困难而且耗 时的,因为驱动程序是位于系统核心执行的程序,所以开发驱动程序不仅要具备 良好的程序设计经验以及技巧,才能避免驱动程序运作流程中导致系统出错,同 时还需要了解硬件相关的知识才能知道如何跟硬件做数据的交换,因此,对于一 般的纯软件设计人员想要开发驱动程序造成一大困扰。 在本论文中,我们针对周边硬件中的力回馈装置设计了一个USB力回馈装 置驱动程序产生器(USB Force Feedback Device Driver Generator),使用者可以藉 由此驱动程序产生器快速产生驱动程序、安装所需的INF 档案以及相对应的应 用程序,此举可以免除一般的软件从业人员必须了解操作系统核心以及硬件的相 关知识,因此可以加速开发驱动程序,而且藉由此驱动程序产生器所产生的应用 程序可以达到立即测试硬件的功能。在实验的过程中,我们使用不同硬件规格的 力回馈装置来做测试,结果都能够正确的产生驱动程序,并且顺利的将其安装到 操作系统中。最后实际执行了一些应用程序来测试硬件,结果硬件的反应也都正 确无误。 v Abstract The device driver plays an important role in an operating system. It is the communication bridge between the hardwareperipheral and the application programs running on computer. Device drivers are verysophisticate to develop, because it depends on knowledge of peripheral device specification as well as the OS. kernel’s details. Because a driver is a program which operates in the kernel of OS, it is very sensitive to the modification/upgrade of an OS. Even dealing with the same peripheral device, it usually can not avoid to redevelop a new version of device driver for a newer version of OS. Therefore, the development of device drivers has become a big problem for many PC peripheral system providers. In this thesis, we proposed a device driver generator for PC peripherals using USB interface. More specifically, we focus on the USB force feedback devices. Given the necessary parameters for a specific device, the tool can automatic generate a specific device driver, an INF file and a corresponding application program for verification. This tool can release a software engineer from learning the heavy burden of investigating the operating system core and relevant knowledge of the hardware, hence accelerates the development of the driver. In short, it is a very u
显示全部
相似文档