|
From: Dan M. <dan...@gm...> - 2007-04-17 12:34:59
|
Hi there, Thank you all for the answers and, once again, thank you Stephan. Setting the interface to configuration zero worked just fine. Thanks. Cheers! Dan On 4/15/07, Stephan Meyer <ste...@we...> wrote: > > > Just use usb_set_configuration(dev, 0) to "turn off" the device > after you're done with your testing. This will free the bandwidth > allocated for the device. > > Stephan > > > > 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 > > > > > > ----------------------------------------------------------------- > > > ------------------------------------------------------------------------- > > 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 > > > > > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > |