›› 2016, Vol. 29 ›› Issue (1): 108-.

• 论文 • 上一篇    下一篇

Linux环境下USB设备驱动程序设计

朱恩亮,赵腊才,茹伟,胡宇凡   

  1. (中航工业西安航空计算技术研究所 民用机载电子设备研究室,陕西 西安 710068)
  • 出版日期:2016-01-15 发布日期:2016-02-25
  • 作者简介:朱恩亮(1983—),男,硕士,工程师。研究方向:计算机应用。
  • 基金资助:

    航空科学基金资助项目(20141931001)

Development of USB Device Drivers of Linux

ZHU Enliang,ZHAO Lacai,RU Wei,HU Yufan   

  1. (Civilian Vehicle-borne Electronic Devices Research Section,AVIC Xi'an Aeronautic Computing Technique Research Institute,Xi'an 710068,China)
  • Online:2016-01-15 Published:2016-02-25

摘要:

在介绍Linux设备驱动程序、USB逻辑组织的基础上,针对某数据采集系统与PC机之间的USB通信实时性要求高、数据带宽高的特点,采用URB并结合DMA的方法,开展Linux环境下USB设备驱动程序的设计。通过读取大容量数据对驱动程序进行测试,单个USB端点数据读取速度可达30 MB/s,能满足系统需求。

关键词: Linux, 字符设备驱动, USB逻辑组织, USB设备驱动

Abstract:

Linux platform is widely used now while the requirements of device driver based on this platform are needed by more and more developers.A URB combining with DMA development method for the real-time and high bandwidth USB communication between a data collection system and a PC is provided after a brief introduction to Linux device drivers and USB logical organization.The system requirements can be satisfied by this development method after large capacity data reading test of the driver.The reading speed of a single USB endpoint reaches 30 MB/s.

Key words: Linux;character device driver;USB logical organization;USB device driver

中图分类号: 

  • TP361.85