摘要
为嵌入式产品E-Book开发USB接口,达到E-Book与PC机的正常通信,软件开发需包含USB固件程序设计、USB设备驱动程序设计和USB通信应用程序设计。文章在USB固件程序和设备驱动程序已基本开发完毕的前提下,分别从USB上层通信程序和它与USB设备驱动程序之间的I/O接口两个模块的设计,进一步对USB通信程序进行了研究和较详细的阐述。特别编写了E-Book与PC机通过USB接口进行批量数据传输的采样测试程序,给出了实际传输速率与USB理论值之间的误差分析。
In order to develop an USB interface for E-Book that is one product of embedded system and then implement communication between the E-Book and PC,the software development includes USB firework program,USB device driver program and USB communication program.On the base of finishing firework program and device driver program, the article introduces the design and implementation of USB communication program detailedly from two aspects,one is I/O interface with USB device driver program,and the other is USB communication on PC.Especially,the article introduces a sample testing program that to test bulk transfer.In the end,the article gives some reasons for error between USB practical transfer value and academic value.
出处
《电脑与信息技术》
2007年第3期43-47,共5页
Computer and Information Technology