PortInfo.N

Get all port information for specified port. All available keys and values for this port as a dictionary.

Syntax: see Call Structure

{

"method": "cbrx_connection_get",

"params": [

connection-handle,

"PortInfo.N"

]

}

connection-handle is the Connection Handles as an integer.

Returns:

{

"result":{

"Port":port-number,

"Current_mA": Current_mA,

"LocationID":location-id,

"Flags": flags,

"USBVersion":usb-version,

"VID":Vendor-ID,

"PID":product-ID,

"Manufacturer": "device-manufacturer",

"Description": "description",

"SerialNumber": "usb-serial",

"USBTree": {

"LocationID":location-id,

"USBVersion":usb-version,

"USBPower": {

"State": "power-state",

"Description": "power-description"

},

"USBSpeed": {

"Speed": "USB-speed",

"Description": "USB-description"

"Capability": {

"Speed": "capable-speed",

"Description": "capable-description"

}

},

"Endpoints": {

"Active":active-endpoints,

"Memory":endpoint-memory

}

}

}

}

Output Description
port-number The number of the port on the hub
Current_mA Current being delivered to the device, in mA (milliamperes)
location-id The Location IDs as an Integer
flags Flags on the port, see Syntax: see Call Structure
usb-version The USB version number of the connection to the hub. Format 'N.nn'
Vendor-ID Device Vedor ID number or VID. Displayed as an Integer
product-ID Product ID number or PID. Displayed as an Integer
device-manufacturer The name of the device manufacturer
description Name of the hardware
usb-serial USB serial number
power-state USB Power States code
power-description USB power turned on/off
USB-speed Maximum speed USB connection capable of
USB-description Name of USB connection i.e. SuperSpeed USB 5Gbps
capable-speed Maximum data speed device capable of
capable-description Name of maximum data speed device capable of
active-endpoints How many endpoints the device is using
endpoint-memory Amount of memory being used by endpoints
Example
Copy
{
    "jsonrpc": "2.0",
    "id": 0,
    "result": {
        "Port": 1,
        "Current_mA": 1084,
        "LocationID": 563154944,
        "Flags": "R A S",
        "USBVersion": 2.1,
        "VID": 1256,
        "PID": 26720,
        "Manufacturer": "SAMSUNG",
        "Description": "SAMSUNG_Android",
        "SerialNumber": "RFCN20Q8LJM",
        "USBTree": {
            "LocationID": 563154944,
            "USBVersion": 2.1,
            "USBPower": {
                "State": "D0",
                "Description": "On"
            },
            "USBSpeed": {
                "Speed": "480Mbps",
                "Description": "High",
                "Capability": {
                    "Speed": "10Gbps",
                    "Description": "SuperSpeed USB 10Gbps"
                }
            },
            "Endpoints": {
                "Active": 9,
                "Memory": 36864
            }
        }
    }
}