|
From: Dan M. <dan...@gm...> - 2007-04-11 17:58:48
|
Hello Stephan,
First of all, thank you for being so helpful and so quick! :D
Now let's get back to the problems:
1- I can't spread the devices as I have only one EHCI host controller.
2- I won't be able to use configuration 0, as if there's no interface, I
cannot transfer data, right?
3- Isn't there a way to lower the packetsize?
About the packetsize, the amount of data I can transfer has something
to do with it? Because I usually transfer 2048 bytes, and if I transfer onl=
y
64 bytes I'm still not able to use the third device. And if the maxpacktsiz=
e
is 1024, why can I transfer 2048? Could you point me something to read abou=
t
this?
4- Here goes DebugView log:
LIBUSB-DRIVER - get_descriptor(): buffer size 18
LIBUSB-DRIVER - get_descriptor(): type 0001
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 18
LIBUSB-DRIVER - get_descriptor(): type 0001
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 18
LIBUSB-DRIVER - get_descriptor(): type 0001
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 8
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 1000
LIBUSB-DRIVER - get_descriptor(): buffer size 46
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 1000
LIBUSB-DRIVER - get_descriptor(): buffer size 8
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 1000
LIBUSB-DRIVER - get_descriptor(): buffer size 46
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 1000
LIBUSB-DRIVER - get_descriptor(): buffer size 8
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 1000
LIBUSB-DRIVER - get_descriptor(): buffer size 46
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 1000
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - claim_interface(): interface 0
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x04
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 905
LIBUSB-DRIVER - transfer_complete(): sequence 905: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 906
LIBUSB-DRIVER - transfer_complete(): sequence 906: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x04
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 907
LIBUSB-DRIVER - transfer_complete(): sequence 907: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 908
LIBUSB-DRIVER - transfer_complete(): sequence 908: 2048 bytes transmitted
LIBUSB-DRIVER - release_interface(): interface 0
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - claim_interface(): interface 0
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x04
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 909
LIBUSB-DRIVER - transfer_complete(): sequence 909: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 910
LIBUSB-DRIVER - transfer_complete(): sequence 910: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x04
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 911
LIBUSB-DRIVER - transfer_complete(): sequence 911: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 912
LIBUSB-DRIVER - transfer_complete(): sequence 912: 2048 bytes transmitted
LIBUSB-DRIVER - release_interface(): interface 0
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 18
LIBUSB-DRIVER - get_descriptor(): type 0001
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 9
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 46
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - set_configuration(): found interface 0
LIBUSB-DRIVER - set_configuration(): setting configuration 1 failed: status=
:
0xc0000001, urb-status: 0x80000700
You can see I make four transfers with each device: bulk write and read and
interrupt write and read. When I get to the third device, I get this error.
In my program, now I get the following error message:
Opened Device 3.
Configuring Device 3...................LIBUSB_DLL: error:
usb_set_configuration:
could not set config 1: win error: *Um dispositivo conectado ao sistema n=
=D2o
est=DF
funcionando.*
[error: setting config 1 failed]
The message in portuguese says: "a device conected to the system is not
working".
Any thoughts?
Cheers,
Dan
On 4/11/07, Stephan Meyer <ste...@we...> wrote:
>
>
> That's sounds plausible. Configuration 0 contains no interfaces
> and thus consumes no bandwidth.
>
> Stephan
>
>
>
> > Hi there,
> >
> > One more thing to add:
> >
> > when I call the function usb_set_configuration(devH, 1), if I change th=
e
> 1 to zero, then I pass thru the
> > configuration, but then I don't get to claim the interface (get an erro=
r
> on this function:
> > usb_claim_interface(devH, 0) . I tried changing the number on this
> function too, but it didn't work.
> >
> > Hope that helped a bit.
> >
> > Dan
> >
> >
> >
> > On 4/11/07, Dan Martins <dan...@gm...> wrote:
> >
> > Hi,
> >
> >
> >
> > I used the DebugView, but when I use the bulk program, it only returns
> two blank lines. When I use the test program, it returns lots of things.
> Here are the logs:
> >
> >
> >
> > bulk.c:
> >
> >
> >
> >
> >
> >
> >
> > (two blank lines).
> >
> >
> >
> > test program:
> >
> >
> >
> >
> > [2116] LIBUSB_DLL: info: usb_os_init: driver version: 0.1.12.1
> >
> > [2116] LIBUSB_DLL: info: usb_os_find_busses: found bus-0
> >
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 18
> > LIBUSB-DRIVER - get_descriptor(): type 0001
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): timeout 5000
> > [2116] LIBUSB_DLL: info: usb_os_find_devices: found
> \\.\libusb0-0001--0x0547-0x1002 on bus-0
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 18
> > LIBUSB-DRIVER - get_descriptor(): type 0001
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 5000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 18
> > LIBUSB-DRIVER - get_descriptor(): type 0001
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 5000
> > [2116] LIBUSB_DLL: info: usb_os_find_devices: found
> \\.\libusb0-0002--0x0547-0x1002 on bus-0
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 18
> > LIBUSB-DRIVER - get_descriptor(): type 0001
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 5000
> > [2116] LIBUSB_DLL: info: usb_os_find_devices: found
> \\.\libusb0-0003--0x0547-0x1002
> > on bus-0
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 8
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 46
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 8
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> >
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> > [2116] LIBUSB_DLL: info: usb_os_find_devices: found
> \\.\libusb0-0004--0x0547-0x1002 on bus-0
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 46
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 8
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 46
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> >
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 8
> >
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 46
> > LIBUSB-DRIVER - get_descriptor(): type 0002
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): index 0001
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> >
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> >
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0002
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0001
> >
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> >
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0002
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> >
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0001
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> >
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): index 0002
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> >
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> >
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0001
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0000
> > LIBUSB-DRIVER - get_descriptor(): language id 0000
> >
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> > LIBUSB-DRIVER - get_descriptor(): buffer size 255
> > LIBUSB-DRIVER - get_descriptor(): type 0003
> > LIBUSB-DRIVER - get_descriptor(): recipient 0000
> > LIBUSB-DRIVER - get_descriptor(): index 0002
> >
> > LIBUSB-DRIVER - get_descriptor(): language id 1033
> > LIBUSB-DRIVER - get_descriptor(): timeout 1000
> >
> >
> >
> > And here goes the device's descriptors:
> >
> >
> >
> >
> > DLL version: 0.1.12.1
> > Driver version:
> > 0.1.12.1
> >
> >
> > bus/device idVendor/idProduct
> > bus-0/\\.\libusb0-0001--0x0547-0x1002 0547/1002
> > - Manufacturer : Micro-Star
> > - Product : USB TESTER
> > wTotalLength: 46
> > bNumInterfaces: 1
> > bConfigurationValue: 1
> > iConfiguration: 0
> > bmAttributes: 80h
> > MaxPower: 50
> > bInterfaceNumber: 0
> > bAlternateSetting: 0
> > bNumEndpoints: 4
> > bInterfaceClass: 255
> > bInterfaceSubClass: 0
> > bInterfaceProtocol: 0
> > iInterface: 0
> > bEndpointAddress: 02h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 04h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 86h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 88h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> > bus-0/\\.\libusb0-0002--0x0547-0x1002 0547/1002
> > - Manufacturer : Micro-Star
> > - Product : USB TESTER
> > wTotalLength: 46
> > bNumInterfaces: 1
> > bConfigurationValue: 1
> > iConfiguration: 0
> > bmAttributes: 80h
> > MaxPower: 50
> > bInterfaceNumber: 0
> > bAlternateSetting: 0
> > bNumEndpoints: 4
> > bInterfaceClass: 255
> > bInterfaceSubClass: 0
> > bInterfaceProtocol: 0
> > iInterface: 0
> > bEndpointAddress: 02h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 04h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 86h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 88h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> > bus-0/\\.\libusb0-0003--0x0547-0x1002 0547/1002
> > - Manufacturer : Micro-Star
> > - Product : USB TESTER
> > wTotalLength: 46
> > bNumInterfaces: 1
> > bConfigurationValue: 1
> > iConfiguration: 0
> > bmAttributes: 80h
> > MaxPower: 50
> > bInterfaceNumber: 0
> > bAlternateSetting: 0
> > bNumEndpoints: 4
> > bInterfaceClass: 255
> > bInterfaceSubClass: 0
> > bInterfaceProtocol: 0
> > iInterface: 0
> > bEndpointAddress: 02h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 04h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 86h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 88h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> > bus-0/\\.\libusb0-0004--0x0547-0x1002 0547/1002
> > - Manufacturer : Micro-Star
> > - Product : USB TESTER
> > wTotalLength: 46
> > bNumInterfaces: 1
> > bConfigurationValue: 1
> > iConfiguration: 0
> > bmAttributes: 80h
> > MaxPower: 50
> > bInterfaceNumber: 0
> > bAlternateSetting: 0
> > bNumEndpoints: 4
> > bInterfaceClass: 255
> > bInterfaceSubClass: 0
> > bInterfaceProtocol: 0
> > iInterface: 0
> > bEndpointAddress: 02h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 04h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 86h
> > bmAttributes: 01h
> > wMaxPacketSize: 1024
> > bInterval: 1
> > bRefresh: 0
> > bSynchAddress: 0
> > bEndpointAddress: 88h
> > bmAttributes: 02h
> > wMaxPacketSize: 512
> > bInterval: 0
> > bRefresh: 0
> > bSynchAddress: 0
> >
> >
> >
> >
> > I made some tests and got even more confused: if I jump the first and
> second devices, testing the third (or fourth) device first, I still get t=
he
> same error. So would it be a power or bandwidth problem? I'll think of so=
me
> more tests to do and will post here if I find something that could help.
> >
> >
> >
> > Thanks and cheers!
> >
> >
> >
> >
> > Dan
> >
> >
> > On 4/10/07, Stephan Meyer <ste...@we...> wrote:
> >
> > What kind of error messages does DebugView
> > (
> > http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx=
)
> > capture when you try to configure your devices?
> >
> > Also, it would be helpfull if you would post your device's descriptors
> (output
> > of testlibusb-win.exe).
> >
> > Stephan
> >
> >
> > > Hi Stephan,
> > >
> > >
> > >
> > > 1- I tried to find the error definitions before posting, and in
> errno.h I get this only:
> > >
> > >
> > >
> > >
> > > #ifndef __ERROR_H__
> > > #define __ERROR_H__
> > >
> > >
> > > /* Connection timed out */
> > > #define ETIMEDOUT 116
> > >
> > >
> > > typedef enum {
> > > USB_ERROR_TYPE_NONE =3D 0,
> > > USB_ERROR_TYPE_STRING,
> >
> > > USB_ERROR_TYPE_ERRNO,
> > > } usb_error_type_t;
> > >
> > >
> > >
> > > void usb_error(char *format, ...);
> > > void usb_message(char *format, ...);
> > > const char *usb_win_error_to_string(void);
> >
> > > int usb_win_error_to_errno(void);
> > >
> > >
> > > #endif /* _ERROR_H_ */
> > >
> > > 2- There's no value named bMaxPower, but there is a MaxPower value,
> which is 50.
> > >
> > >
> > >
> > > 3- The devices are bus-powered.
> >
> > >
> > >
> > >
> > > 4- I don't know if the endpoints have these characteristics, but I ca=
n
> interrupt write and read, so I guess the device has interrupt endpoints.
> About being isochronous, I can't really assure it is. It might be, as it =
is
> a 2.0 device.
> > >
> > >
> > >
> > > When I put three of these devices, I get this error, but if I put two
> devices and another bus-powered device, such as a pen-drive, it works fin=
e.
> > >
> > >
> > >
> > > But if the problem is really windows refusing to configure the device=
,
> is there a way to make the SO not refuse it?
> > >
> > >
> > >
> > > Thanks for the answers Stephan!
> > >
> > >
> > >
> > > Cheers!
> > >
> > >
> > >
> > > Dan
> > >
> > >
> > >
> > > On 4/10/07, Stephan Meyer <
> > ste...@we...> wrote:
> > >
> > >
> > > > Hi there,
> > > >
> > > >
> > > >
> > > > Is there a table of the function's return values?
> > >
> > >
> > > The error code are defined in errno.h. -5 means EIO (i/o error)
> > >
> > > >
> > > >
> > > >
> > > > I'm using a test board that has four devices with the same
> characteristics, such as vendor and product
> > > > ids, number of and address of endpoints, and all others. But when I
> try to use more than two of these
> > >
> > > > devices, I get a -5 error from the function usb_set_configuration()
> on the third device (after accessing
> > > > writing and reading from the other two).
> > >
> > > This could be either a power or bandwidth problem. Windows will refus=
e
> to configure
> > >
> > > the devices of they request too much power or bandwidth.
> > >
> > > What's the bMaxPower value of your device's config descriptor? Are
> your four
> > > devices connected to a bus-powered or to a self-powered hub?
> > >
> > > Do your devices have interrupt or isochronous endpoints?
> > >
> > > Stephan
> > >
> > >
> > >
> > > >
> > > >
> > > >
> > > > Does anyone know what might be happening? Thanks in advance.
> > > >
> > > >
> > > >
> > > > Dan Leite Martins
> > >
> > > >
> > > > -----------------------------------------------------------------
> > > >
> -------------------------------------------------------------------------
> > > > 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 cas=
h
> > > >
> > >
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
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=3D021192
> >
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > > 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=3Djoin.php&p=3Dsourceforge&CID=3D=
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=3Djoin.php&p=3Dsourceforge&CID=3D=
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=3D021192
> >
> >
> >
> -------------------------------------------------------------------------
> >
> > 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=3Djoin.php&p=3Dsourceforge&CID=3D=
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=3Djoin.php&p=3Dsourceforge&CID=3D=
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=3D021192
>
>
> -------------------------------------------------------------------------
> 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=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
> _______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
|