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 questionI 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.
精彩评论