7. LW3 Programmers’ Reference
UCX series – User's Manual
122
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
8.11.5. Query the Port Data Role
Command and Response
ç
GET
·
/V1/MEDIA/USB/
<usb_port>
.ActivePortDataRole
æ
pr
·
/V1/MEDIA/USB/
<usb_port>
.ActivePortDataRole=
<data_role>
Parameters
Parameter
Parameter
description
Values
Value description
<usb-c_port>
USB-C port number
U1-U2
USB-C port number
<data_role>
N/A
DFP
UFP
No
Downstream Facing Port (usually a Host / HUB ports)
The port data role is configured as USB Host. This is
for build-up the connection (USB data transmission
operates after the data role swap)
Upstream Facing Port (usually a device)
Example
ç
GET /V1/MEDIA/USB/U2.ActivePortDataRole
æ
pr /V1/MEDIA/USB/U2.ActivePortDataRole=UFP
8.11.6. Query the Port Power Role
Command and Response
#power
ç
GET
·/V1/MEDIA/USB/
<usb_port>
.ActivePortPowerRole
æ
pr
·/V1/MEDIA/USB/
<usb_port>
.ActivePortPowerRole=
<power_role>
Parameters
Parameter
Parameter description
Values
Value description
<usb-c_port>
USB-C port number
U1-U2
USB-C port number
<power_role>
N/A
Sink
Source
No information about the power role.
The port is configured as a sink.
The port is configured as a source
Example
ç
GET /V1/MEDIA/USB/U2.ActivePortPowerRole
æ
pr /V1/MEDIA/USB/U2.ActivePortPowerRole=Source
8.11.7.
Set Port Power Role
Command and Response
ç
SET
·
/V1/MEDIA/USB/
<usb-c_port>
.PortPowerRoleSetting=
<power_role>
æ
pw
·
/V1/MEDIA/USB/
<usb_port>
.PortPowerRoleSetting=
<power_role>
Parameters
Parameter
Parameter description
Values
Value description
<usb-c_port>
USB-C port number
U1-U2
USB-C port number
<power_role>
Sink
Source
Dual Role
The port is configured as a sink.
The port is configured as a source.
The port is configured Dual Power Role mode.
Example
ç
SET /V1/MEDIA/USB/U1.PortPowerRoleSetting=Dual Role
æ
pw /V1/MEDIA/USB/U1.PortPowerRoleSetting=Dual Role