0

In my program I need every time a USB device is connected to print this: DEVICE NAME | PID | VID

I'de made a little research but I got so confused. I'm interested to build this in Python, though, if it's easier in other languages, i'de like to see how.

Thanks a lot !

Fernando Retimo
  • 1,003
  • 3
  • 13
  • 25
  • I recommend you to check [pyusb](http://pyusb.sourceforge.net/docs/1.0/tutorial.html) and maybe this post will help you too [python usb detection](http://stackoverflow.com/questions/19570548/python-usb-detection) – AlvaroAV Dec 26 '13 at 09:14
  • What OS do you use? On Linux it may be easier to start a Python script from a udev rule. Or use pyudev as suggested in [this question](http://stackoverflow.com/questions/5109879/usb-devices-udev-and-d-bus). – maxy Dec 26 '13 at 10:10
  • The OS i'll use it going to be probably Windows 7. – Fernando Retimo Dec 26 '13 at 10:24

0 Answers0