Page 1 of 1

how to remove the notice "found x busses"

Posted: Sun Feb 08, 2009 7:21 pm
by Tilex
Hi,

I've made a console application for my project based on the project PowerSwitch.
Everytime the console application connects with the device, it writes "found 4 busses" on the console.

I bet it has something to do with the function "usb_find_busses();" but I
can't find the function in the header files.

I find this notice a bit annoying and I wonder if I could remove it.
I hope there is even a way to speed up the application in some way with
the initialisation or does the programm need to look on all busses for
the device and consume about half a second everytime?

Is there a way to let the program remember on which bus the device is
(maybe in a config file) for further starts; and if it can't find it there, it
does a new whole search on all busses if needed.

Bye,
Tilex

Posted: Mon Feb 16, 2009 4:15 pm
by christian
This is a libusb-win32 issue. The info log comes directly from the libusb-win32 dll. Don't know whether there are versions without this log.

The time to enumerate all USB devices depends on the implementation of libusb on the particular platform. You can implement a logic which searches on the "last seen" bus first, but I doubt that it brings a huge improvement.