Settings
Obtain current hub Internal hub settings.
Syntax: see Call Structure
{ "method": "cbrx_connection_get", "params": [ connection-handle, "Settings", true ] } |
connection-handle is the Connection Handles as an integer.
Returns:
{ "result": { "company_name": "manufacturer-name", "product_name": "product-name", "local_name": "local-name", "attach_threshold": "attach-threshold", "default_profile": [default-profile], "remap_ports": [port-order], "ports_on": [ports-on], "sync_chrg": [sync-charge], "alt_sync_chrg": [alt-sync-charge], "misc_flags":Internal hub-flags, "display_mode": "display-mode", "charged_threshold": "charged-threshold", "temperature_max": "shutdown-temperature", "stagger": "stagger" } } |
Variables | Description |
---|---|
manufacturer-name | Defined name of manufacturer, Default is 'Cambrionix' |
product-name | Hardware name of product |
local-name | Local name set by the user, "-" if not set |
attach-threshold | Current drawn in mA that the hub detects a device is connected, "d" means factory default is set |
default-profile | Default profile for each port, comma seperated list |
port-order | Order the ports are by port number, comma seperated list |
ports-on | Whether each port is default on, 0 is default off 1 is default on, comma seperated list |
sync-charge | Whether CDP* on each port on, 0 is off, 1 is on, comma seperated list |
alt-sync-charge | Whether alternative CDP* on each port on, 0 is off, 1 is on, comma seperated list |
Internal hub-flags | If any Internal hub Misc flags are active |
display-mode | Change the display mode for logs, "d" means factory default is set |
charged-threshold | Current drawn in mA that the hub detects a device is fully charged, "d" means factory default is set |
shutdown-temperature | Temperature that will shutdown the hub if reached in Celsius, "d" means factory default is set |
stagger | A delay between ports turning on in ms, "d" means factory default is set |
*Charging Downstream Port (CDP) Being enabled means that a port is capable of transferring data and charging the device at the same time with a higher current than just data syncing alone. With CDP enabled the hub can supply up to 1.5 A
If you disable CDP you will receive the notification “This Hub has the Charge Downstream Port UCS mode disabled. This could limit the maximum current seen on some ports.” This notification is there to ensure you haven’t turned this off by accident and can still have the highest charge available.
Example
{
"jsonrpc": "2.0",
"id": 5,
"result": {
"company_name": "cambrionix",
"product_name": "SuperSync15",
"local_name": "-",
"attach_threshold": "d",
"default_profile": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"remap_ports": [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
"ports_on": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"sync_chrg": [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
"alt_sync_chrg": [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
"misc_flags": 0,
"display_mode": "d",
"charged_threshold": "d",
"temperature_max": "d",
"stagger": "d"
}
}