Checking if USB device is plugged in




Hi,

I'm looking for a way of checking whether a specific USB device (a webcam) is plugged in. I have the Vendor and Product ID numbers for the device.

I found an article (http://www.vsj.co.uk/articles/display.asp?id=600) with code sample that does the trick for human input devices (mouse, keyboard, ...) but am struggling for my webcam.

Any help appreciated, thanks.

Gary
.



Relevant Pages

  • Vendor review site?
    ... Having a brain-fart day and can't remember the site with all of the vendor ... reviews on it that's normally recommended here! ... Have a webcam I want to buy ...
    (uk.comp.vendors)
  • Re: Web Cams for Linux - Suggestions ?
    ... good image quality and not to bulky to be portable. ... preference is for a usb device but am open to suggestions. ... Found a Creative WebCam Live! ...
    (comp.os.linux.hardware)
  • Re: Getting Skype webcam working
    ... If dmesg indicates only a new USB device and nothing more, ... My webcam creates a device at /dev/video0 when it's ... It's so much easier to set group ownership in udev, set permissions to 660, ...
    (Ubuntu)
  • USB webcam 1 time recognised, then no more, Fedora 8
    ... Hi, I received a webcam from someone, and tried to plug it in. ... new full speed USB device using ohci_hcd and address 3 ... pwc: Philips webcam module version 10.0.13 loaded. ...
    (linux.redhat.misc)
  • usb device problem
    ... hub.c: new USB device 00:0b.0-1, ... vicam: could not create proc entry, ... ViCam webcam driver now controlling video device 0 ... but opening the secone will open the first cam only ...
    (comp.os.linux.setup)