开发者

USB event handling [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

Improve this question

I wish to do event handling in C/C++ monitoring USB activity-insertion and remov开发者_如何学Goal in Linux.Can you suggest me some resources where I can learn the same?


You can use

  • libusb - to scan the USB devices
  • libudev - to monitor devices
  • or add a rule to udev to monitor insertion/removal of devices
  • Work with USB HID programming
  • Or use the HAL Daemon ( ed: it seems this one is now an zombie, see:comments )


http://www.linuxjournal.com/article/8093 - A small overview about the linux USB system.

A library to communicate with the USB devices: http://sourceforge.net/projects/libusb/


I think you should start by analysing libudev.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜