1 / 65
文档名称:

基于USB接口的激光打标控制器的驱动程序设计.pdf

格式:pdf   页数:65页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

基于USB接口的激光打标控制器的驱动程序设计.pdf

上传人:minzo 2014/2/24 文件大小:0 KB

下载得到文件列表

基于USB接口的激光打标控制器的驱动程序设计.pdf

文档介绍

文档介绍:华中科技大学
硕士学位论文
基于USB接口的激光打标控制器的驱动程序设计
姓名:徐骏平
申请学位级别:硕士
专业:物理电子学
指导教师:胡兵
20060510
摘要
随着计算机主板 ISA 插槽逐渐被淘汰,而 USB 接口的蓬勃发展并成为一种标准的
PC 外围接口,本课题将 USB 传输和单片机控制相结合,设计出一种新型的基于 USB 接
口的振镜扫描式激光标刻控制器,使 USB 传输和单片机控制的各自优势都得以发挥。
由于 USB 接口的激光标刻控制器硬件设计工作已基本完成,本课题的主要任务就是进
行 USB 打标控制器驱动程序的设计。该驱动程序主要是通过对通用串行总线接口的调
用来帮助建立控制器与计算机之间的通信。
本文首先介绍了激光打标的原理,激光打标技术的发展现状以及激光打标系统的
组成,并对 USB 总线技术在激光打标中应用的可行性作了分析。在对 USB 总线协议作
了简要介绍后,本文详细介绍了控制器与计算机进行 USB 通信的协议的制定,其中包
括打标数据的格式和传输类型、传输和输出顺序,控制信号的自定义设备请求以及控
制器与计算机进行 USB 传输过程等内容。然后在对 USB 驱动程序编程的背景知识及编
程工具的简要介绍后,重点对 USB 驱动程序的编程过程作了详细说明。通过编写一个
简易的 Windows 应用程序,本文在测试驱动程序的同时也演示了如何对驱动程序进行
调用。在实际打标测试过程中,本驱动程序基本满足了计算机与控制器之间的通信要
求,实现了计算机与打标控制器之间的通信。最后,本文提出了一些改进建议,比如:
驱动程序的异步传输技术的使用,标刻数据格式的定义以及系统兼容性的提高。


关键词:激光标刻通用串行总线视窗驱动模型驱动开发包
应用程序编程接口 USB驱动程序接口







I
ABSTRACT
With the rapid development of motherboard, the ISA slot is out of date, while USB
interface is booming and ing a standard peripheral interface puter. By
connecting USB transmiting with singlechip controlling, a new kind of galvanometer laser
marking controller based on USB technology is designed. It takes advantages of USB
technology and singlechip. For the pleted hardware design of the laser mark
controller based on USB interface, this research mainly concerns the programing of USB
laser marking controller driver. This driver is based on the calling for USBDI and helps to
build munication between the controller puter.
This paper firstly introduces the principle of laser marking, the development actualities
of laser marking technology and position of laser marking system. Then it analyzes
the feasibility of USB technology applying to laser mark. After the USB protocol is
introduced briefly, this paper amply explains how to make the munication protocol
between puter and the controller. This protocol includes the format and transfers’
types of marking data, the sequence of data input and output, the vendor device reques