[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libusb-devel
Subject:    Re: [libusb] devices in list
From:       James Linder <jam () tigger ! ws>
Date:       2018-04-21 4:40:48
Message-ID: 7A20D0B8-543C-40B6-9BB9-527FE7F6B5D6 () tigger ! ws
[Download RAW message or body]



> On 21 Apr 2018, at 9:29 am, Xiaofan Chen <xiaofanc@gmail.com> wrote:
> 
> On Sat, Apr 21, 2018 at 8:56 AM, James Linder <jam@tigger.ws> wrote:
> > OK lets try that differently:
> > Has anybody used libusb with more than say 20 devices on the usb chain
> 
> It should work. What is the configuration of your USB Chain? What is
> the OS? You can use listdev example and set LIBUSB_DEBUG=4 to
> get the debug info.
> 
> Just as a test, I am typing on Windows 10 machine and I happend
> to have a powered 12 ports USB 2.0 hub, a usb-3.0 hub and another
> USB 2.0 hub. So I just gathered all the device I have on hand and
> now I have 21 USB devices (not counting USB root hubs).
> 
> c:\work\libusb\libusb-1.0.22\build64\bin>listdevs.exe
> 8086:27cb (bus 1, device 0)
> 1a40:0201 (bus 6, device 5) path: 2.5
> 0781:5567 (bus 6, device 11) path: 2.2
> 045e:0766 (bus 6, device 2) path: 5
> 0ec2:2015 (bus 6, device 12) path: 2.5.4
> 8086:27ca (bus 5, device 0)
> 1a86:7523 (bus 6, device 9) path: 2.5.5.2
> 0bda:0109 (bus 6, device 13) path: 2.5.2
> 2357:0106 (bus 4, device 1) path: 1
> 0781:5581 (bus 6, device 15) path: 2.4
> 0fcf:1009 (bus 2, device 1) path: 1
> 046d:c054 (bus 6, device 14) path: 2.6
> 05e3:0610 (bus 4, device 3) path: 4
> 8086:27cc (bus 6, device 0)
> 1a40:0101 (bus 6, device 8) path: 2.5.5
> 058f:6366 (bus 6, device 3) path: 7
> 0483:3748 (bus 6, device 4) path: 2.3
> 1a40:0201 (bus 6, device 1) path: 2
> 046d:c52b (bus 3, device 1) path: 1
> 8086:27c9 (bus 3, device 0)
> 0781:5530 (bus 6, device 10) path: 2.7
> 1033:0194 (bus 4, device 0)
> 05e3:0616 (bus 4, device 2) path: 2
> 0403:6001 (bus 6, device 7) path: 2.5.7
> 0ac8:3420 (bus 6, device 6) path: 2.5.1
> 8086:27c8 (bus 2, device 0)


First thanks knowing it works makes is very much easier ie what am I doing, vs maybe \
it does not run.

I used a context inited to null. The example uses NULL as the context argument.
My way hicups on lots of devices, using NULL works properley. That's bizare, but ce \
est la vie. Thanks for help.

James
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
libusb-devel mailing list
libusb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic