7. Lightware REST API Reference
UCX series – User's Manual
87
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
7.10.5.
Setting the 5V Sending to the USB Peripherals
The 5V power towards the USB A-type ports can be enabled or disabled as follows:
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/USB/H1/
<device_id>
/Power5VMode·HTTP/1.1
ɯ
body:
<device_pwr>
ɮ
header:
200 OK
ɮ
body:
<device_pwr>
Parameters
Parameter
Parameter description
Values
Value description
<device_id>
USB A-type port
D1-D4
Downstream port number
<device_pwr>
5V power sending
Auto
The host controls the 5V
power sending.
Off
Disable 5V power on USB
downstream port
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/USB/H1/D1/Power5VMode HTTP/1.1
ɯ
body: Auto
ɮ
header:
200 OK
ɮ
body: Auto
7.10.6.
Set the USB Autoselect Policy
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/USB/AUTOSELECT/H1/Policy·HTTP/1.1
ɯ
body:
<op_mode>
ɮ
header:
200 OK
ɮ
body:
<op_mode>
Parameters
Parameter
Parameter description
Values
Value description
<op_mode>
Operation mode
Off
The autoselect function is disabled.
Last Detect
Always the last attached input is switched to
the output automatically.
First Detect
The first active USB input is selected.
Follow video
Follows the video crosspoint state
automatically.
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/USB/AUTOSELECT/H1/Policy HTTP/1.1
ɯ
body:
Follow video
ɮ
header:
200 OK
ɮ
body:
Follow video
7.10.7.
Set the Followed Video Port to Autoselect
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/USB/AUTOSELECT/H1/VideoFollowPort ·HTTP/1.1
ɯ
body:
<out>
ɮ
header:
200 OK
ɮ
body:
<out>
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/USB/AUTOSELECT/H1/VideoFollowPort HTTP/1.1
ɯ
body: O1
ɮ
header:
200 OK
ɮ
body: O1
7.10.8.
Change the Autoselect Included USB Ports
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/USB/AUTOSELECT/H1/
<host>
/Included·HTTP/1.1
ɯ
body:
<state>
ɮ
header:
200 OK
ɮ
body:
<state>
Parameters
Parameter
Parameter description
Values
Value description
<host>
USB Host
U1-U4
USB-C and USB-B port number
<state>
The chosen input is ignored from the
autoselect process or not.
true
The port is included in autoselect.
false
The autoselect function ignores that port.
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/USB/AUTOSELECT/H1/U1/Included HTTP/1.1
ɯ
body: false
ɮ
header:
200 OK
ɮ
body: false