7. Lightware REST API Reference
UCX series – User's Manual
90
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
7.11.7.
Set Port Power Role
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/USB/
<usb-c_port>
/PortPowerRoleSetting·HTTP/1.1
ɯ
body:
<power_role>
ɮ
header:
200 OK
ɮ
body:
<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
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/USB/U1/PortPowerRoleSetting HTTP/1.1
ɯ
body:
Dual Role
ɮ
header:
200 OK
ɮ
body:
Dual Role
7.12.
EDID Management
7.12.1. Query the Emulated EDIDs
Request and Response
#edid
ɯ
header:
GET·http://
<ip>
/api/V1/EDID/EdidStatus·HTTP/1.1
ɮ
header: 200·OK
ɮ
body: ["
<source>
:E1";"
<source>
:E2";"
<source>
:E3;""
<source>
:E4"]
Parameters
Parameter
Parameter description
Values
Value description
<source>
Source EDID memory place
F1-F120
Factory EDIDs
U1-U14
User EDIDs
D1-D2
Dynamic EDIDs
Example
ɯ
header:
GET http://192.168.0.50/api/V1/EDID/EdidStatus HTTP/1.1
ɮ
header:
200 OK
ɮ
body: ["F47:E1","F47:E2","F47:E3","F47:E4"]
Emulated EDID memory for input port is listed with the EDID number that is currently emulated on the input.
7.12.2. Query the Validity of a Dynamic EDID
Request and Response
ɯ
header:
GET·http://
<ip>
/api/V1/EDID/D/D1/Validity·HTTP/1.1
ɮ
header: 200·OK
ɮ
body:
<validity>
Parameters
If the
<validity>
parameter is
true
, the EDID is valid. If the parameter is
false
, the EDID is invalid.
Example
ɯ
header:
GET http://192.168.0.50/api/V1/EDID/D/D1/Validity HTTP/1.1
ɮ
header:
200 OK
ɮ
body: true
The ‘Validity’ property is true, valid EDID is stored in D1 memory place.
7.12.3. Query the Preferred Resolution of a User EDID
Request and Response
ɯ
header:
GET·http://
<ip>
/api/V1/EDID/U/
<user_edid>
/PreferredResolution·HTTP/1.1
ɮ
header: 200·OK
ɮ
body:
<preferred_resolution>
Example
ɯ
header:
GET http://192.168.0.50/api/V1/EDID/U/U2/PreferredResolution HTTP/1.1
ɮ
header:
200 OK
ɮ
body: 1920x1080p60.00Hz
INFO:
Use the
Manufacturer
and
MonitorName
properties to query further information.