Thank you Spiro and Graeme for the answers. Graeme's suggestion won't work
for me, I should've explained the problem better. I might have had some luck
with Spiro's answer though. I'll check if it'll work. Meanwhile, here goes a
better explanation of the problem:
I'm developing a test program that tests if usb ports are working. I do this
by requesting information and writing and reading data from usb devices. I
use an usb board test that has four devices. The thing is that these devices
are out of usb standarts, requiring more bandwidth than it should. So, when
I use a higher number of devices, Windows won't allow me to access from the
third device and on. This happens because I don't have enough band.
If I test one device, and after it's done, I unplug it, then I'm freeing
some band, which allows me to test some more ports. If I do this to every
device I test, then I'll be able to test how many ports I want.
But it's not possible for me to be unpluging the devices myself - I need to
do this by software. After I test one device, I should use a function (on
Windows) that disables the device connection to the host controller, which
will free some band.
I hope this made things clear.
Cheers,
Dan.
On 4/13/07, Spiro Trikaliotis <an-...@sp...> wrote:
>
> Hello,
>
> * On Thu, Apr 12, 2007 at 05:57:16PM -0300 Dan Martins wrote:
>
> > Does anyone know any windows function that allows me to manually
> > "unplug" a usb device?
>
> Have a look at the Windows DDK (now called "WDK"), the "devcon" sample.
> It allows you to do different operations with devices, for example,
> enable, disable, remove, list them, rescan for them, ...
>
> HTH,
> Spiro.
>
> --
> Spiro R. Trikaliotis http://opencbm.sf.net/
> http://www.trikaliotis.net/ http://www.viceteam.org/
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
|