Xojo Conferences
XDCMay2019MiamiUSA

[MBS] USB Bus Tree (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] 17.1pr3
Next thread: [MBS] [ANN] 17.1pr2


[MBS] MBS 7.5 with RB2010r4.1   -   Garth Hjelte
  [MBS] USB Bus Tree   -   Jean-Luc Arnaud
   Re: [MBS] USB Bus Tree   -   Christian Schmitz
    Re: [MBS] USB Bus Tree   -   Jean-Luc Arnaud

[MBS] USB Bus Tree
Date: 22.02.17 11:20 (Wed, 22 Feb 2017 11:20:58 +0100)
From: Jean-Luc Arnaud
Hi All,

Is there a way, using either MBS plugins, Registry or the both, to get a kind of USB 'tree', that is, the location of each port of each hub
connected to the PC?
It would be great, for me, to obtain, at least, for each hub its hub number.
Currently, I'm able to get this when plugging in an USB device, but I would prefer to get all hubs numbers before plugging in a device.
I hope my explanation is clear.

TIA

Re: [MBS] USB Bus Tree
Date: 22.02.17 11:26 (Wed, 22 Feb 2017 11:26:10 +0100)
From: Christian Schmitz

> Am 22.02.2017 um 11:20 schrieb Jean-Luc Arnaud <<email address removed>>:
>
> Hi All,
>
> Is there a way, using either MBS plugins, Registry or the both, to get a kind of USB 'tree', that is, the location of each port of each hub
> connected to the PC?

That is platform dependent.

I think LinuxUSBBusMBS allows you to walk down the bus.

For Mac you may find it in the IORegistry.

Sincerely
Christian

Re: [MBS] USB Bus Tree
Date: 22.02.17 12:01 (Wed, 22 Feb 2017 12:01:45 +0100)
From: Jean-Luc Arnaud
Thanks for replying, Christian.

In my mind, PC means Windows. Sorry, I should have written "Windows".

Unfortunately, there is no WinUSBBusMBS!

Nevertheless, this should be possible, since USBTreeView and USBView
utilities do that. Note that they don't return the Hub number of a given
hub, they only return its location (Parent port and hub).

So, is it mandatory to plug a device in a hub in order to get the hub
number?

I hope no ...

TIA for any help

Jean-Luc Arnaud

Le 22/02/2017 à 11:26, Christian Schmitz a écrit :
>> Am 22.02.2017 um 11:20 schrieb Jean-Luc Arnaud <<email address removed>>:
>>
>> Hi All,
>>
>> Is there a way, using either MBS plugins, Registry or the both, to get a kind of USB 'tree', that is, the location of each port of each hub
>> connected to the PC?
> That is platform dependent.
>
> I think LinuxUSBBusMBS allows you to walk down the bus.
>
> For Mac you may find it in the IORegistry.
>
> Sincerely
> Christian
>

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info