how to remove the notice "found x busses"

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Tilex
Posts: 8
Joined: Mon Jan 05, 2009 4:47 am
Contact:

how to remove the notice "found x busses"

Post by Tilex » Sun Feb 08, 2009 7:21 pm

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Mon Feb 16, 2009 4:15 pm

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.

Post Reply