use devcon to disable and re-enable devices.
I have just bought a smart little webcam with night vision, the picture is very good, even in the dark, one problem however is that the camera has 6 little super bright LED's that come on automatically when needed, trouble is that they will be on at night when driving and white lights on the back of a car going forwards are highly illegal.
If I put a switch on the lead so it comes on automatically then the PC will have to re-detect it and install drivers each time.
Anyone know of a way to turn USB devices on and off through software without the drivers having to re-load all the time?
But would Devcon actually turn off the power to the Camera because if not the lights won't go out.
The only other idea I've had is to make a small circuit with an LED on it and fix it directly above the light meter on the webcam, and have the LED turn off when its dark and the car goes into reverse. That way the camera is functional all the time, but the lights will only come on in reverse and in the dark.
Anyone know why one of my systems will autodetect and install USB hardware without intervension when the other one prompt for the location of drivers everytime?!? They were both setup with the same version of XP-sp1?
You could also put a relay in line on the USB power pin, and have it actuated by the reverse light line. This makes it a hardware rather than a hardware solution, but should effectively make it "plug in" when you go into reverse, and "unplug" when in park or drive. There might be a slight delay as XP detects the device, but it should be easier to do than wiring up your own LEDs. Just a thought.
yeah i agree with mushin. My first thoughts on it were to use a multimeter to determine which one of the wires in the USB group of wires was +volts, then put a toggle switch on it