计算机与现代化 ›› 2012, Vol. 1 ›› Issue (10): 202-206.doi:

• 应用与开发 • 上一篇    下一篇

基于Linux的USB设备管理器的设计与实现

姚振国   

  1. 电子科技大学,四川成都610054
  • 收稿日期:2012-06-12 修回日期:1900-01-01 出版日期:2012-10-24 发布日期:2012-10-24

Design and Realization of USB Device Manager Based on Linux

YAO Zhen-guo   

  1. University of Electronic Science and Technology of China, Chengdu 610054, China
  • Received:2012-06-12 Revised:1900-01-01 Online:2012-10-24 Published:2012-10-24

摘要:

研究目前Linux下USB设备软件USBview与lsusb,通过对比其优缺点,设计并实现一种图形界面的USB设备管理软件:USB设备管理器。它基于libusb库与Sysfs虚拟文件系统,使用GTK+2.0来作为图形界面库,能运行在所有安装GNOME桌面环境的Linux系统上,实现USB设备的移除与自动检测,并且可以显示设备详细信息与设备状态。

关键词: Linux, USB设备管理, Sysfs虚拟文件系统, GTK+2.0

Abstract:

Based on analyzing the advantages and disadvantages of USBview and lsusb running on Linux, This paper designs and realizes a new USB device manager software:USB device manager. It is based on libusb and Sysfs virtual

filesystem, using GKT+2.0 as its graphical user interface. It can run on all the Linux operation system with GNOME graphical user interface. It achieves USB device removed and automatic detection, displaying devices information and

status on the windows.

Key words: Linux, USB device manager, Sysfs virtual filesystem, GTK+2.0