You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
(27) |
Dec
(9) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(2) |
Feb
(19) |
Mar
(13) |
Apr
(15) |
May
(11) |
Jun
(17) |
Jul
(31) |
Aug
(45) |
Sep
(10) |
Oct
(40) |
Nov
(39) |
Dec
(45) |
| 2005 |
Jan
(113) |
Feb
(45) |
Mar
(38) |
Apr
(53) |
May
(11) |
Jun
(42) |
Jul
(56) |
Aug
(50) |
Sep
(32) |
Oct
(32) |
Nov
(47) |
Dec
(22) |
| 2006 |
Jan
(19) |
Feb
(32) |
Mar
(40) |
Apr
(40) |
May
(41) |
Jun
(44) |
Jul
(37) |
Aug
(51) |
Sep
(30) |
Oct
(30) |
Nov
(51) |
Dec
(20) |
| 2007 |
Jan
(7) |
Feb
(20) |
Mar
(17) |
Apr
(67) |
May
(13) |
Jun
(73) |
Jul
(16) |
Aug
(58) |
Sep
(29) |
Oct
(5) |
Nov
(74) |
Dec
(9) |
| 2008 |
Jan
(17) |
Feb
(12) |
Mar
(65) |
Apr
(22) |
May
(40) |
Jun
(32) |
Jul
(11) |
Aug
(8) |
Sep
(3) |
Oct
(41) |
Nov
(34) |
Dec
(12) |
| 2009 |
Jan
(44) |
Feb
(33) |
Mar
(16) |
Apr
(109) |
May
(11) |
Jun
(22) |
Jul
(21) |
Aug
(37) |
Sep
(5) |
Oct
(23) |
Nov
(7) |
Dec
(7) |
| 2010 |
Jan
(36) |
Feb
(40) |
Mar
(35) |
Apr
(45) |
May
(42) |
Jun
(104) |
Jul
(135) |
Aug
(50) |
Sep
(65) |
Oct
(110) |
Nov
(129) |
Dec
(75) |
| 2011 |
Jan
(105) |
Feb
(48) |
Mar
(93) |
Apr
(166) |
May
(169) |
Jun
(188) |
Jul
(106) |
Aug
(33) |
Sep
(85) |
Oct
(46) |
Nov
(102) |
Dec
(105) |
| 2012 |
Jan
(81) |
Feb
(115) |
Mar
(56) |
Apr
(93) |
May
(56) |
Jun
(77) |
Jul
(88) |
Aug
(52) |
Sep
(72) |
Oct
(16) |
Nov
(70) |
Dec
(70) |
| 2013 |
Jan
(23) |
Feb
(85) |
Mar
(38) |
Apr
(48) |
May
(40) |
Jun
(49) |
Jul
(33) |
Aug
(28) |
Sep
(66) |
Oct
(28) |
Nov
(28) |
Dec
(16) |
| 2014 |
Jan
(33) |
Feb
(58) |
Mar
(17) |
Apr
(50) |
May
(16) |
Jun
(24) |
Jul
(19) |
Aug
(32) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(10) |
| 2015 |
Jan
(11) |
Feb
(2) |
Mar
(4) |
Apr
(14) |
May
(1) |
Jun
(6) |
Jul
(16) |
Aug
(29) |
Sep
(6) |
Oct
(26) |
Nov
(10) |
Dec
|
| 2016 |
Jan
|
Feb
(20) |
Mar
(6) |
Apr
|
May
(3) |
Jun
(3) |
Jul
|
Aug
(16) |
Sep
(6) |
Oct
|
Nov
(15) |
Dec
|
| 2017 |
Jan
(1) |
Feb
(2) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2018 |
Jan
|
Feb
(8) |
Mar
(10) |
Apr
(16) |
May
|
Jun
(15) |
Jul
|
Aug
(3) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(3) |
Aug
|
Sep
(6) |
Oct
(2) |
Nov
(4) |
Dec
|
| 2022 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(3) |
Mar
(1) |
Apr
(1) |
May
(11) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(3) |
Dec
|
|
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
>
|
|
From: Stephan M. <ste...@we...> - 2007-04-11 17:18:23
|
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 the 1 to zero, then I pass thru the > configuration, but then I don't get to claim the interface (get an error 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 the same error. So would it be a power or bandwidth problem? I'll think of some 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 = 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 can 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 fine. > > > > > > > > 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 refuse 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 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 > > > > > > > ------------------------------------------------------------------------- > > 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 > > > ------------------------------------------------------------------------- > > 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 |
|
From: Stephan M. <ste...@we...> - 2007-04-11 17:13:55
|
>=20 > I used the DebugView, but when I use the bulk program, it only returns t= wo blank lines. When I use the=20 > test program, it returns lots of things. Here are the logs: Add usb=5Fset=5Fdebug(255) after usb=5Finit() to bulk.c.=20 It should print out some debug information then. What errors do you see=3F >=20 > [...] >=20 > And here goes the device's descriptors: >=20 Thanks, that explains why Windows won't configure your four devices: * each device has two isochronous endpoints (bmAttributes =3D=3D 0x01) * each of these endpoints has a wMaxPacketSize value of 1024 and a bInterval value of 1 According to the USB spec (section 9.6.6) your four devices would require the following bandwidth to operate (I assume that your devices are high-sp= eed USB): * interval: bInterval =3D=3D 1 =3D> 2^(bInterval - 1) * 125=B5s =3D> 125=B5s * bandwidth of one endpoint: 1024/125=B5s * 1000 =3D 8Mbytes/s * bandwidth of one device: 8Mbytes/s * 2 =3D 16Mbytes/s * bandwidth of four devices: 64MBytes/s !! One single host controller just can't handle this amount of data. That's why Windows refuses to configure more than two devices. =20 But it should work if you spread your devices across multiple host controllers. Apart from that, your device's firmware is not compliant with the USB specification. Quote from the spec, section 5.6.3: "All device default interface settings must not include any isochronous=20 endpoints with non-zero data payload sizes (specified via wMaxPacketSize=20 in the endpoint descriptor). Alternate interface settings may specify non= -zero=20 data payload sizes for isochronous endpoints. If the isochronous endpoint= s=20 have a large data payload size, it is recommended that additional alternat= e=20 configurations or interface settings be used to specify a range of data pa= yload=20 sizes. This increases the chance that the device can be used successfully= in combination with other USB devices." Hope this helps, Stephan > =20 >=20 >=20 > DLL version: 0.1.12.1 > Driver version: 0.1.12.1 >=20 >=20 > bus/device idVendor/idProduct > bus-0/\\.\libusb0-0001--0x0547-0x1002 0547/1002 > - Manufacturer : Micro-Star > - Product : USB TESTER > wTotalLength: 46 > bNumInterfaces: 1 > bConfigurationValue: 1 >=20 > iConfiguration: 0 > bmAttributes: 80h > MaxPower: 50 > bInterfaceNumber: 0 > bAlternateSetting: 0 > bNumEndpoints: 4 > bInterfaceClass: 255 > bInterfaceSubClass: 0 >=20 > bInterfaceProtocol: 0 > iInterface: 0 > bEndpointAddress: 02h > bmAttributes: 01h > wMaxPacketSize: 1024 > bInterval: 1 > bRefresh: 0 > bSynchAddress: 0 >=20 > 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 >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/=3Fmc=3D021192 |
|
From: Dan M. <dan...@gm...> - 2007-04-11 16:24:54
|
Hi there, One more thing to add: when I call the function usb_set_configuration(devH, 1), if I change the 1 to zero, then I pass thru the configuration, but then I don't get to claim the interface (get an error 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 the > same error. So would it be a power or bandwidth problem? I'll think of some > 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 = 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 can > > 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 fine. > > > > > > > > > > > > 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 refuse > > 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 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 <http://web.de/> FreeMail - einfach, schnell > > und > > > > > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > > > > > > > > > ------------------------------------------------------------------------- > > > 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 <http://web.de/> FreeMail - einfach, schnell > > und > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > > > > > > ------------------------------------------------------------------------- > > 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 > > > > |
|
From: Dan M. <dan...@gm...> - 2007-04-11 14:53:18
|
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 <file://./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 <file://./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 <file://./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 <file://./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 the same
error. So would it be a power or bandwidth problem? I'll think of some 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.hI get this only:
> >
> >
> >
> >
> > #ifndef __ERROR_H__
> > #define __ERROR_H__
> >
> >
> > /* Connection timed out */
> > #define ETIMEDOUT 116
> >
> >
> > typedef enum {
> > USB_ERROR_TYPE_NONE = 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 can
> 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 fine.
> >
> >
> >
> > 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 refuse
> 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 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
> >
> >
> >
> -------------------------------------------------------------------------
> > 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
>
>
> -------------------------------------------------------------------------
> 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
>
|
|
From: Graeme G. <gr...@ar...> - 2007-04-11 08:25:57
|
Graeme Gill wrote: > Just noting that I've had to revert back to the previous > version because one device (the Colorimètre HCFR) doesn't > work on the new libusb-win32. Some further information. I installed the 0.1.12.1 driver again, and fired up Snoopypro, hoping to capture the differences between the previous version that worked, and this version. Unfortunately this didn't do any good. It showed that the device keeps getting re-enumerated every second, so Snoopypro just pops up a new trace window each second, empty of any USB transactions. I turned on __usb_debug in the driver, and strangely when I run the application this occasionally gets the device to work (but not every time). I get the following messages when this happens: LIBUSB_DLL: info: usb_os_init: dll version: 0.1.12.1 LIBUSB_DLL: info: usb_os_init: driver version: 0.1.12.1 LIBUSB_DLL: info: usb_os_find_busses: found bus-0 LIBUSB_DLL: info: usb_os_find_devices: found \\.\libusb0-0001--0x04db-0x005b on bus-0 LIBUSB_DLL: error: usb_reap: timeout error After this the device remains available until I reset it or reconnect it. Graeme Gill. |
|
From: Robert M. <mar...@co...> - 2007-04-11 05:54:04
|
Stephan Meyer wrote: > This sounds like a great idea! I'll add a native HID backend to the > next version of the DLL. It should be possible to implement most of > libusb's features on top of Windows' hid.dll such as open, close, > interrupt-read/write and basic control messages. The rest can be > emulated/simulated. I am not involved in this project, but i can tell you about bugs in the HID API of Windows. I do know almost all about that API. |
|
From: Xiaofan C. <xia...@gm...> - 2007-04-11 01:01:15
|
On 4/11/07, Stephan Meyer <ste...@we...> wrote: > > > > The thing is that you need to uninstall the kernel HID driver and > > use the libusb-win32 device driver for this kind of HID device. This > > significantly reduces the usability of libusb-win32 for HID device > > under Windows. Yet many USB device disguise them as HID device > > just to avoid writing a device driver. > > > > Just wondering if it is possible to use an alternative backend > > (Windows HID apli) and make libusb a wrapper on top of it. > > I understand then it should perhaps be called libhid-win32 then. > > This sounds like a great idea! I'll add a native HID backend to the > next version of the DLL. It should be possible to implement most of > libusb's features on top of Windows' hid.dll such as open, close, > interrupt-read/write and basic control messages. The rest can be > emulated/simulated. > That will be great! "open, close, interrupt-read/write and basic control messages" are the functions we need most for those simple HID device. Now I am looking forward to test the next version of the DLL. Regards, Xiaofan |
|
From: Stephan M. <ste...@we...> - 2007-04-10 20:46:40
|
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 = 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 can 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 fine. > > > > 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 refuse 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 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 > > > ------------------------------------------------------------------------- > 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 |
|
From: Dan M. <dan...@gm...> - 2007-04-10 20:35:57
|
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 = 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 can
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 fine.
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 refuse 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 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
>
>
> -------------------------------------------------------------------------
> 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
>
|
|
From: Stephan M. <ste...@we...> - 2007-04-10 20:14:12
|
> 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 refuse 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 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 |
|
From: Stephan M. <ste...@we...> - 2007-04-10 19:53:16
|
> On 4/9/07, Stephan Meyer <ste...@we...> wrote: > > > > This is most likely cause by the fact that you have installed > > libusb's kernel driver as a filter. This doesn't work properly with > > some HID devices. > > > > Uninstall the filter and install the kernel driver as a normal device > > driver through an .inf file (use inf-wizard.exe to create one). > > > > It should work then. > > The thing is that you need to uninstall the kernel HID driver and > use the libusb-win32 device driver for this kind of HID device. This > significantly reduces the usability of libusb-win32 for HID device > under Windows. Yet many USB device disguise them as HID device > just to avoid writing a device driver. > > Just wondering if it is possible to use an alternative backend > (Windows HID apli) and make libusb a wrapper on top of it. > I understand then it should perhaps be called libhid-win32 then. This sounds like a great idea! I'll add a native HID backend to the next version of the DLL. It should be possible to implement most of libusb's features on top of Windows' hid.dll such as open, close, interrupt-read/write and basic control messages. The rest can be emulated/simulated. > > By the way, will the new WinUSB based libusb-win32 solve this > issue? No, unfortunetly not. Winusb(.sys) is just a normal device driver like libusb0.sys. Stephan _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 |
|
From: Dan M. <dan...@gm...> - 2007-04-10 15:19:48
|
Hi there, Is there a table of the function's return values? 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). Does anyone know what might be happening? Thanks in advance. Dan Leite Martins |
|
From: Xiaofan C. <xia...@gm...> - 2007-04-10 13:49:07
|
On 4/10/07, Garth Dahlstrom <iro...@gm...> wrote: > Okay, how exactly do I do that? > > install-filter.exe doesn't run at all on my computer, just quits with no > output... > > Should I run the NSIS uninstaller for > libusb-win32-filter-bin-0.1.12.1.exe and reboot, would that > do it? Am I just supposed to be using the "bin" tar ball by itself? > You can uninstall the fillter driver by using "add/remove program" in Control Panel. You need to manually "upgrade" the HID driver to the libusb device driver. It is quite troublesome and I do not know if it will work for you since your device is more complicated than the PICKit 2 I am using. Here is the procedure for the PICkit 2. For the detail procedure, you may want to look at my Microchip Forum post. http://forum.microchip.com/tm.aspx?m=110205 Regards, Xiaofan |
|
From: Garth D. <iro...@gm...> - 2007-04-10 13:07:13
|
Okay, how exactly do I do that? install-filter.exe doesn't run at all on my computer, just quits with no output... Should I run the NSIS uninstaller for libusb-win32-filter-bin-0.1.12.1.exeand reboot, would that do it? Am I just supposed to be using the "bin" tar ball by itself? On 4/10/07, Xiaofan Chen <xia...@gm...> wrote: > > On 4/10/07, Garth Dahlstrom <iro...@gm...> wrote: > > Here's what I tried this evening: > > - "install-filter.exe -h" in a cmd window. No output, no change in USB > > devices show in test program. > > - open install-filter.c, read that -u is to uninstall filter > > - run " install-filter.exe -u" in a cmd window. No output, no change in > USB > > devices show in test program. > > - put usb_uninstall_service_np() into first line of bulk.c example and > run > > that, that removes all but mouse device. > > - go download the "libusb-win32-device-bin-0.1.12.1.tar.gz" > > which has a whole bunch of shit that is not in the > > libusb-win32-filter-bin-0.1.12.1.exe install that I got > > before, like inf-wizard that I am supposed to run. > > - run inf-wizard, pick out my device from the list to create .inf files. > > Right click "Install" on generated .inf. > > - test program shows my mouse and my device (so all that got rid of one > > device from the list I don't care about) > > - run my app, no luck app detects mouse and my device and freezes > > - reboot > > > You should uninstall the filter driver and then try again. If not the > PC will hang since the Windows HID driver is still there. I have > problem with this last time and Stephan's suggestion is working for me. > > ------------------------------------------------------------------------- > 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 > -- __ --- == __/ t.O ==-- http://stacktrace.org/ |
|
From: Xiaofan C. <xia...@gm...> - 2007-04-10 08:35:22
|
On 4/10/07, Garth Dahlstrom <iro...@gm...> wrote: > Here's what I tried this evening: > - "install-filter.exe -h" in a cmd window. No output, no change in USB > devices show in test program. > - open install-filter.c, read that -u is to uninstall filter > - run " install-filter.exe -u" in a cmd window. No output, no change in USB > devices show in test program. > - put usb_uninstall_service_np() into first line of bulk.c example and run > that, that removes all but mouse device. > - go download the "libusb-win32-device-bin-0.1.12.1.tar.gz" > which has a whole bunch of shit that is not in the > libusb-win32-filter-bin-0.1.12.1.exe install that I got > before, like inf-wizard that I am supposed to run. > - run inf-wizard, pick out my device from the list to create .inf files. > Right click "Install" on generated .inf. > - test program shows my mouse and my device (so all that got rid of one > device from the list I don't care about) > - run my app, no luck app detects mouse and my device and freezes > - reboot You should uninstall the filter driver and then try again. If not the PC will hang since the Windows HID driver is still there. I have problem with this last time and Stephan's suggestion is working for me. |
|
From: Garth D. <iro...@gm...> - 2007-04-10 06:16:04
|
There is a libHID library on http://libhid.alioth.debian.org/ that claims it aims to work everywhere (Windows is listed on the website)... in practise the source repo doesn't actually look like it has any code for win32 anywhere in there. I've been spoiled by a Delphi HID component that works wonderfully on Win32 (from the awesome Delphi Jedi's - http://www.delphi-jedi.org/), but that is likely non-portable and also being written in Pascal... On 4/9/07, Xiaofan Chen <xia...@gm...> wrote: > > > The thing is that you need to uninstall the kernel HID driver and > use the libusb-win32 device driver for this kind of HID device. This > significantly reduces the usability of libusb-win32 for HID device > under Windows. Yet many USB device disguise them as HID device > just to avoid writing a device driver. > > Just wondering if it is possible to use an alternative backend > (Windows HID apli) and make libusb a wrapper on top of it. > I understand then it should perhaps be called libhid-win32 then. > > By the way, will the new WinUSB based libusb-win32 solve this > issue? > -- __ --- == __/ t.O ==-- http://stacktrace.org/ |
|
From: Garth D. <iro...@gm...> - 2007-04-10 06:07:15
|
Here's what I tried this evening: - "install-filter.exe -h" in a cmd window. No output, no change in USB devices show in test program. - open install-filter.c, read that -u is to uninstall filter - run "install-filter.exe -u" in a cmd window. No output, no change in USB devices show in test program. - put usb_uninstall_service_np() into first line of bulk.c example and run that, that removes all but mouse device. - go download the "libusb-win32-device-bin-0.1.12.1.tar.gz" which has a whole bunch of shit that is not in the libusb-win32-filter-bin-0.1.12.1.exeinstall that I got before, like inf-wizard that I am supposed to run. - run inf-wizard, pick out my device from the list to create .inf files. Right click "Install" on generated .inf. - test program shows my mouse and my device (so all that got rid of one device from the list I don't care about) - run my app, no luck app detects mouse and my device and freezes - reboot - test program shows -1.-1.-1.-1 for driver version - change first line of bulk.c to usb_install_service_np() - test program shows only mouse, not my device - right click on my .inf file choose install - test program still only shows the mouse, though inf-wizard still sees all 3 devices... - reboot - all 3 devices appear again in test program - run a c program w/ usb_uninstall_service_np() + quit; - run bulk.c: LIBUSB_DLL: info: usb_os_init: dll version: 0.1.12.1 LIBUSB_DLL: info: usb_os_init: driver version: 0.1.12.1 LIBUSB_DLL: info: usb_set_debug: setting debugging level to 255 (on) LIBUSB_DLL: info: usb_os_find_busses: found bus-0 LIBUSB_DLL: info: usb_os_find_devices: found \\.\libusb0-0002--0x15c2-0xffdc on bus-0 LIBUSB_DLL: info: usb_os_find_devices: found \\.\libusb0-0003--0x06f8-0xb100 on bus-0 <app frozen> Maybe it just doesn't work with composite devices that have multiple HIDs or something (the DJ console is 2 HIDs + a 5.1 sound card all in one device)... It's particularly frustrating that usb_set_configuration seems to not be able to timeout in any kind of reasonable fashion... On 4/9/07, Stephan Meyer <ste...@we...> wrote: > > > This is most likely cause by the fact that you have installed > libusb's kernel driver as a filter. This doesn't work properly with > some HID devices. > > Uninstall the filter and install the kernel driver as a normal device > driver through an .inf file (use inf-wizard.exe to create one). > > It should work then. > > Stephan > > > > > Using the bulk.c example, if I try with my mouse (MY_VID 0x04b3, MY_PID > > 0x310b) I can successfully bulk_read. > > > > When I set MY_VID/PID to that of my djconsole I get the same process > hang as my djconsole port test program --> "usb_set_configuration" freezes > the process everytime... :( > > > > > > Here is what SysInternals ProcessExplorer shows for the process stack: > > ntoskrnl.exe+0x584d > > ntoskrnl.exe!KeQueryRuntimeThread+0x5e8 > > ntoskrnl.exe!CcPurgeCacheSection+0x240 > > USBPORT.SYS+0x20378 > > USBPORT.SYS+0x13d5c > > > > USBPORT.SYS+0x18dfe > > USBPORT.SYS+0x21e2 > > ntoskrnl.exe!Kei386EoiHelper+0x237d > > usbhub.sys+0x4afa > > usbhub.sys+0x21d8 > > ntoskrnl.exe!Kei386EoiHelper+0x237d > > libusb0.sys+0x32ad > > libusb0.sys+0x1f0a > > libusb0.sys+0x140f > > > > ntoskrnl.exe!Kei386EoiHelper+0x237d > > ntoskrnl.exe!RtlIntegerToUnicode+0x66 > > ntoskrnl.exe!RtlRemoveUnicodePrefix+0x10e4 > > ntoskrnl.exe!ZwSetSystemInformation+0x23 > > ntdll.dll!KiFastSystemCallRet > > libusb0.dll!usb_submit_async+0x1d8 > > > > libusb0.dll!usb_set_configuration+0x63 > > Test5.exe!main+0x8f > > Test5.exe!__tmainCRTStartup+0x1a6 > > Test5.exe!mainCRTStartup+0xd > > kernel32.dll!RegisterWaitForInputIdle+0x49 > > > > Suggestions? > > > > > > > > On 4/7/07, Garth Dahlstrom <iro...@gm...> wrote: > > I think hdev1 was correct in my case, since that's the handle returned > by usb_open call (looking at other examples), however it looks like my test > program gets hung when it calls > > usb_set_configuration, here is the output: > > > > LIBUSB_DLL: info: usb_os_init: dll version: 0.1.12.1 > > > > LIBUSB_DLL: info: usb_os_init: driver version: 0.1.12.1 > > > > LIBUSB_DLL: info: usb_os_find_busses: found bus-0 > > LIBUSB_DLL: info: usb_os_find_devices: found > \\.\libusb0-0001--0x04b3-0x310b on bus-0 > > LIBUSB_DLL: info: usb_os_find_devices: found > \\.\libusb0-0002--0x15c2-0xffdc on bus-0 > > > > LIBUSB_DLL: info: usb_os_find_devices: found > \\.\libusb0-0003--0x06f8-0xb100 on bus-0 > > Hercules Console found at libusb:bus-0:\\.\libusb0-0003--0x06f8-0xb100 > (0x06f8-0xb100) > > No error > > No error > > ---- > > > > I had this happen before and I can't kill the app through taskmgr or > pskill when it goes like this. > > > > > > hrm... > > > > > > > > On 4/7/07, Garth Dahlstrom < > > iro...@gm...> wrote: > > Tried that before but hit an error message like this: > > 1> libdjconsole-0.1.2\djconsole.cpp(142) : error C2664: > 'usb_set_configuration' : cannot convert parameter 1 from 'usb_device *' to > 'usb_dev_handle *' > > > > 1> Types pointed to are unrelated; conversion requires > reinterpret_cast, C-style cast or function-style cast > > > > So I changed it to hdev1, but that didn't work... > > > > Thanks for the pointer! > > > > Now I know what direction to head in... just need to figure out how to > cast it properly for cpp I think. (should be easy enough to figure that > out) > > > > Cheers, > > > > -G > > > > > > > > On 4/7/07, Stephan Meyer <ste...@we...> wrote: > > > > > LIBUSB_DLL: error: usb_claim_interface: could not claim interface 5, > invalid configuration 0 > > > > > bus-0/\\.\libusb0-0003--0x06f8-0xb100 06F8/B100 > > > - Manufacturer : Hercules > > > - Product : Hercules DJ Console Mk2 > > > > > wTotalLength: 399 > > > bNumInterfaces: 8 > > > > > > bConfigurationValue: 1 > > > > > > Insert usb_set_configuration(dev, 1) before usb_claim_interface(). > > > > Stephan > > > > > > _______________________________________________________________ > > > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > > kostenguenstig. Jetzt gleich testen! > > http://f.web.de/?mc=021192 > > > > > > > ------------------------------------------------------------------------- > > > > 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 > > > > > > > > > > > > -- > > __ > > --- == __/ t.O ==-- > > http://stacktrace.org/ > > > > > > > > > > -- > > __ > > --- == __/ t.O ==-- > > http://stacktrace.org/ > > > > > > > > -- > > __ > > --- == __/ t.O ==-- > > http://stacktrace.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 > > > > > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > ------------------------------------------------------------------------- > 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 > -- __ --- == __/ t.O ==-- http://stacktrace.org/ |
|
From: Xiaofan C. <xia...@gm...> - 2007-04-10 03:51:02
|
On 4/10/07, Xiaofan Chen <xia...@gm...> wrote: > On 4/9/07, Stephan Meyer <ste...@we...> wrote: > > > > This is most likely cause by the fact that you have installed > > libusb's kernel driver as a filter. This doesn't work properly with > > some HID devices. > > > > Uninstall the filter and install the kernel driver as a normal device > > driver through an .inf file (use inf-wizard.exe to create one). > > > > It should work then. > > The thing is that you need to uninstall the kernel HID driver and > use the libusb-win32 device driver for this kind of HID device. This > significantly reduces the usability of libusb-win32 for HID device > under Windows. Yet many USB device disguise them as HID device > just to avoid writing a device driver. > > Just wondering if it is possible to use an alternative backend > (Windows HID apli) and make libusb a wrapper on top of it. > I understand then it should perhaps be called libhid-win32 then. > > By the way, will the new WinUSB based libusb-win32 solve this > issue? > The nice thing about filter driver is that it is for "all" device and you can still use the existing vendor driver and vendor application with the libusb-win32 application. And sometimes it is a bit difficult to uninstall the Windows driver. |
|
From: Xiaofan C. <xia...@gm...> - 2007-04-10 03:47:01
|
On 4/9/07, Stephan Meyer <ste...@we...> wrote: > > This is most likely cause by the fact that you have installed > libusb's kernel driver as a filter. This doesn't work properly with > some HID devices. > > Uninstall the filter and install the kernel driver as a normal device > driver through an .inf file (use inf-wizard.exe to create one). > > It should work then. The thing is that you need to uninstall the kernel HID driver and use the libusb-win32 device driver for this kind of HID device. This significantly reduces the usability of libusb-win32 for HID device under Windows. Yet many USB device disguise them as HID device just to avoid writing a device driver. Just wondering if it is possible to use an alternative backend (Windows HID apli) and make libusb a wrapper on top of it. I understand then it should perhaps be called libhid-win32 then. By the way, will the new WinUSB based libusb-win32 solve this issue? Regards, Xiaofan |
|
From: Graeme G. <gr...@ar...> - 2007-04-10 02:33:19
|
Graeme Gill wrote: > Thanks for the prompt reply. On examination, a few things have > changed in the .inf files (x64 etc), so yes, it seems like a good idea > to update them. Just noting that I've had to revert back to the previous version because one device (the Colorimètre HCFR) doesn't work on the new libusb-win32. I'm not sure how to go about diagnosing why this is so. It basically doesn't appear on the system with the new driver. Graeme Gill. |
|
From: Dan M. <dan...@gm...> - 2007-04-09 19:17:33
|
worked just fine! thank you very much Stephan!
Cheers!
Dan
On 4/6/07, Stephan Meyer <ste...@we...> wrote:
>
>
> I use QueryPerformanceCounter() and QueryPerformanceFrequency() for this.
>
> Here's some sample code:
>
> #include <windows.h>
> #include <stdint.h>
> #include <stdio.h>
>
> uint64_t _start, _stop, _freq;
> void timer_init(void);
> void timer_start(void);
> void timer_stop(void);
> double timer_get_time(void);
>
> void timer_init(void)
> {
> LARGE_INTEGER f;
> QueryPerformanceFrequency(&f);
> _freq = (uint64_t)f.QuadPart;
> }
>
> void timer_start(void)
> {
> LARGE_INTEGER t;
> QueryPerformanceCounter(&t);
> _start = (uint64_t)t.QuadPart;
> }
>
> void timer_stop(void)
> {
> LARGE_INTEGER t;
> QueryPerformanceCounter(&t);
> _stop = (uint64_t)t.QuadPart;
> }
>
> double timer_get_time(void)
> {
> return ((double)(_stop - _start)) / _freq;
> }
>
> int main(void)
> {
> timer_init();
>
> timer_start();
> // do something
> timer_stop();
> printf("time elapsed: %fs\n", timer_get_time());
>
> timer_start();
> // do something
> timer_stop();
> printf("time elapsed: %fs\n", timer_get_time());
>
> return 0;
> }
>
>
> > Hi there,
> >
> >
> >
> > I'm trying to calculate the time it takes to write and read data to/from
> the device. But the maximum packet size I can use is 2048 and it writes too
> fast. So fast that I'm unable to measure how long it took. Does anyone have
> an idea on how I could calculate writing and reading rate? thanks is
> advance.
> >
> >
> >
> > Dan
> >
> > -----------------------------------------------------------------
> >
> -------------------------------------------------------------------------
> > 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
>
>
> -------------------------------------------------------------------------
> 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
>
|
|
From: Stephan M. <ste...@we...> - 2007-04-09 09:41:46
|
This is most likely cause by the fact that you have installed libusb's kernel driver as a filter. This doesn't work properly with some HID devices. Uninstall the filter and install the kernel driver as a normal device driver through an .inf file (use inf-wizard.exe to create one). It should work then. Stephan Using the bulk.c example, if I try with my mouse (MY_VID 0x04b3, MY_PID > 0x310b) I can successfully bulk_read. > > When I set MY_VID/PID to that of my djconsole I get the same process hang as my djconsole port test program --> "usb_set_configuration" freezes the process everytime... :( > > > Here is what SysInternals ProcessExplorer shows for the process stack: > ntoskrnl.exe+0x584d > ntoskrnl.exe!KeQueryRuntimeThread+0x5e8 > ntoskrnl.exe!CcPurgeCacheSection+0x240 > USBPORT.SYS+0x20378 > USBPORT.SYS+0x13d5c > > USBPORT.SYS+0x18dfe > USBPORT.SYS+0x21e2 > ntoskrnl.exe!Kei386EoiHelper+0x237d > usbhub.sys+0x4afa > usbhub.sys+0x21d8 > ntoskrnl.exe!Kei386EoiHelper+0x237d > libusb0.sys+0x32ad > libusb0.sys+0x1f0a > libusb0.sys+0x140f > > ntoskrnl.exe!Kei386EoiHelper+0x237d > ntoskrnl.exe!RtlIntegerToUnicode+0x66 > ntoskrnl.exe!RtlRemoveUnicodePrefix+0x10e4 > ntoskrnl.exe!ZwSetSystemInformation+0x23 > ntdll.dll!KiFastSystemCallRet > libusb0.dll!usb_submit_async+0x1d8 > > libusb0.dll!usb_set_configuration+0x63 > Test5.exe!main+0x8f > Test5.exe!__tmainCRTStartup+0x1a6 > Test5.exe!mainCRTStartup+0xd > kernel32.dll!RegisterWaitForInputIdle+0x49 > > Suggestions? > > > > On 4/7/07, Garth Dahlstrom <iro...@gm...> wrote: > I think hdev1 was correct in my case, since that's the handle returned by usb_open call (looking at other examples), however it looks like my test program gets hung when it calls > usb_set_configuration, here is the output: > > LIBUSB_DLL: info: usb_os_init: dll version: 0.1.12.1 > > LIBUSB_DLL: info: usb_os_init: driver version: 0.1.12.1 > > LIBUSB_DLL: info: usb_os_find_busses: found bus-0 > LIBUSB_DLL: info: usb_os_find_devices: found \\.\libusb0-0001--0x04b3-0x310b on bus-0 > LIBUSB_DLL: info: usb_os_find_devices: found \\.\libusb0-0002--0x15c2-0xffdc on bus-0 > > LIBUSB_DLL: info: usb_os_find_devices: found \\.\libusb0-0003--0x06f8-0xb100 on bus-0 > Hercules Console found at libusb:bus-0:\\.\libusb0-0003--0x06f8-0xb100 (0x06f8-0xb100) > No error > No error > ---- > > I had this happen before and I can't kill the app through taskmgr or pskill when it goes like this. > > > hrm... > > > > On 4/7/07, Garth Dahlstrom < > iro...@gm...> wrote: > Tried that before but hit an error message like this: > 1> libdjconsole-0.1.2\djconsole.cpp(142) : error C2664: 'usb_set_configuration' : cannot convert parameter 1 from 'usb_device *' to 'usb_dev_handle *' > > 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast > > So I changed it to hdev1, but that didn't work... > > Thanks for the pointer! > > Now I know what direction to head in... just need to figure out how to cast it properly for cpp I think. (should be easy enough to figure that out) > > Cheers, > > -G > > > > On 4/7/07, Stephan Meyer <ste...@we...> wrote: > > > LIBUSB_DLL: error: usb_claim_interface: could not claim interface 5, invalid configuration 0 > > > bus-0/\\.\libusb0-0003--0x06f8-0xb100 06F8/B100 > > - Manufacturer : Hercules > > - Product : Hercules DJ Console Mk2 > > > wTotalLength: 399 > > bNumInterfaces: 8 > > > > bConfigurationValue: 1 > > > Insert usb_set_configuration(dev, 1) before usb_claim_interface(). > > Stephan > > > _______________________________________________________________ > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! > http://f.web.de/?mc=021192 > > > ------------------------------------------------------------------------- > > 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 > > > > > > -- > __ > --- == __/ t.O ==-- > http://stacktrace.org/ > > > > > -- > __ > --- == __/ t.O ==-- > http://stacktrace.org/ > > > > -- > __ > --- == __/ t.O ==-- > http://stacktrace.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 > _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 |
|
From: Stephan M. <ste...@we...> - 2007-04-09 09:18:12
|
Remove the while loop and read all data at once:
char buf[1200*64];
usb_bulk_read(udevhandle, 0x81, buf, sizeof(buf), 1000);
Stephan
>
> Hi.
> I read 1200 x 64 bytes from endpoint1.:
> {...
> i=0;
> while((res=usb_bulk_read(udevhandle,0x81,(char*) &
> imgBuffer+(i<<6),64,20))>=0 && ++i<1200);
> ...}
> This is doing in more then 3 seconds.
> How can I do this faster (in less then 1 second)??
>
> Szymon L.
>
> --
> View this message in context: http://www.nabble.com/slow-read-usb_bulk_read-tf3541191.html#a9885307
> Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> 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
|
|
From: Garth D. <iro...@gm...> - 2007-04-09 05:36:42
|
Using the bulk.c example, if I try with my mouse (MY_VID 0x04b3, MY_PID 0x310b) I can successfully bulk_read. When I set MY_VID/PID to that of my djconsole I get the same process hang as my djconsole port test program --> "usb_set_configuration" freezes the process everytime... :( Here is what SysInternals ProcessExplorer shows for the process stack: ntoskrnl.exe+0x584d ntoskrnl.exe!KeQueryRuntimeThread+0x5e8 ntoskrnl.exe!CcPurgeCacheSection+0x240 USBPORT.SYS+0x20378 USBPORT.SYS+0x13d5c USBPORT.SYS+0x18dfe USBPORT.SYS+0x21e2 ntoskrnl.exe!Kei386EoiHelper+0x237d usbhub.sys+0x4afa usbhub.sys+0x21d8 ntoskrnl.exe!Kei386EoiHelper+0x237d libusb0.sys+0x32ad libusb0.sys+0x1f0a libusb0.sys+0x140f ntoskrnl.exe!Kei386EoiHelper+0x237d ntoskrnl.exe!RtlIntegerToUnicode+0x66 ntoskrnl.exe!RtlRemoveUnicodePrefix+0x10e4 ntoskrnl.exe!ZwSetSystemInformation+0x23 ntdll.dll!KiFastSystemCallRet libusb0.dll!usb_submit_async+0x1d8 libusb0.dll!usb_set_configuration+0x63 Test5.exe!main+0x8f Test5.exe!__tmainCRTStartup+0x1a6 Test5.exe!mainCRTStartup+0xd kernel32.dll!RegisterWaitForInputIdle+0x49 Suggestions? On 4/7/07, Garth Dahlstrom <iro...@gm...> wrote: > > I think hdev1 was correct in my case, since that's the handle returned by > usb_open call (looking at other examples), however it looks like my test > program gets hung when it calls usb_set_configuration, here is the output: > > LIBUSB_DLL: info: usb_os_init: dll version: 0.1.12.1 > LIBUSB_DLL: info: usb_os_init: driver version: 0.1.12.1 > LIBUSB_DLL: info: usb_os_find_busses: found bus-0 > LIBUSB_DLL: info: usb_os_find_devices: found > \\.\libusb0-0001--0x04b3-0x310b on bus-0 > LIBUSB_DLL: info: usb_os_find_devices: found > \\.\libusb0-0002--0x15c2-0xffdc on bus-0 > LIBUSB_DLL: info: usb_os_find_devices: found > \\.\libusb0-0003--0x06f8-0xb100 on bus-0 > Hercules Console found at libusb:bus-0:\\.\libusb0-0003--0x06f8-0xb100 > (0x06f8-0xb100) > No error > No error > ---- > > I had this happen before and I can't kill the app through taskmgr or > pskill when it goes like this. > > hrm... > > > On 4/7/07, Garth Dahlstrom <iro...@gm...> wrote: > > > > Tried that before but hit an error message like this: > > 1> libdjconsole-0.1.2\djconsole.cpp(142) : error C2664: > > 'usb_set_configuration' : cannot convert parameter 1 from 'usb_device *' to > > 'usb_dev_handle *' > > 1> Types pointed to are unrelated; conversion requires > > reinterpret_cast, C-style cast or function-style cast > > > > So I changed it to hdev1, but that didn't work... > > > > Thanks for the pointer! > > > > Now I know what direction to head in... just need to figure out how to > > cast it properly for cpp I think. (should be easy enough to figure that > > out) > > > > Cheers, > > > > -G > > > > On 4/7/07, Stephan Meyer <ste...@we...> wrote: > > > > > > > > > > LIBUSB_DLL: error: usb_claim_interface: could not claim interface 5, > > > invalid configuration 0 > > > > > > > bus-0/\\.\libusb0-0003--0x06f8-0xb100 06F8/B100 > > > > - Manufacturer : Hercules > > > > - Product : Hercules DJ Console Mk2 > > > > wTotalLength: 399 > > > > bNumInterfaces: 8 > > > > > > > > bConfigurationValue: 1 > > > > > > > > > Insert usb_set_configuration(dev, 1) before usb_claim_interface(). > > > > > > Stephan > > > > > > > > > _______________________________________________________________ > > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > > > > > > > ------------------------------------------------------------------------- > > > > > > 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 > > > > > > > > > > > -- > > __ > > --- == __/ t.O ==-- > > http://stacktrace.org/ > > > > > > -- > __ > --- == __/ t.O ==-- > http://stacktrace.org/ > -- __ --- == __/ t.O ==-- http://stacktrace.org/ |