USB Event Management

I want to handle events in C / C ++ monitoring the insertion and removal of USB activity in Linux. Can you offer me some resources where I can find out the same thing?

+6
source share
3 answers

you can use

  • libusb - for scanning USB devices
  • libudev - for monitoring devices
  • or add a rule to udev to control insert / remove devices
  • Working with USB HID Programming
  • Or use HAL Daemon (ed: it looks like it's now a zombie, see: comments)
+4
source

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

Library for communicating with USB devices: http://sourceforge.net/projects/libusb/

+1
source

I think you should start by analyzing libudev .

0
source

Source: https://habr.com/ru/post/891287/


All Articles