Port.N.LocationID
Return the location ID for a specific port. This does not require a device to be attached and so may be used to uniquely identify a USB slot. Location IDs indicate the bus number that a USB host controller is on in the first byte, then the port numbers down the tree for child devices.
Syntax: see Call Structure
{ "method": "cbrx_connection_get", "params": [ connection-handle, "Port.N.LocationID" ] } |
connection-handle is the Connection Handles as an integer.
Returns:
{ "result":location-id } |
location-id Is the Location IDs as an Integer
Example
Copy
{
"jsonrpc": "2.0",
"id": 0,
"result": 563154944
}
Note
-
for USB3 hubs, this location ID will be different when a USB3 device is plugged in compared to a USB2 device