Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

USB event handling [closed]

I wish to do event handling in C/C++ monitoring USB activity-insertion and removal in Linux.Can you suggest me some resources where I can learn the same?

like image 941
Jay Avatar asked Jun 24 '11 11:06

Jay


People also ask

How do I unblock a USB in GPO?

To temporarily allow access to USB devices you will need to manually disable the GPO and manually re-enable it when the end-user no longer requires access to USB devices. To do this, open the the Group Policy Management Console (GPMC), right click the USB blocking GPO under the OU and uncheck the option “Link Enabled”.

Can you see USB transfer history?

If you don't know the name of your computer, go to Settings > System > About. Your computer name is shown at the top. Click the Start button to see the USB history. You can then expand the results to see details such as the time and date it was last used.

How do I monitor USB port activity?

USB protocol Analyzer is an easy to use USB Data Monitor for Windows. It offers simple, yet complete view for monitoring and analyzing activity of USB devices. USB Traffic Analyzer can intercept, record, display, and analyze incoming or outgoing data between any USB device plugged in your computer and applications.


1 Answers

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 )
like image 121
Reno Avatar answered Oct 06 '22 18:10

Reno