Relay Port Configuration; Set Relay Connection Status; Gpio Port Settings; Set The Direction Of A Gpio Pin - Lightware MMX8x4-HT Series User Manual

Multiport matrix switcher
Hide thumbs Also See for MMX8x4-HT Series:
Table of Contents

Advertisement

 
8. LW3 Programmers' Reference
8.13. Relay Port Configuration
8.13.1. Set Relay Connection Status
INFO: This command is available in MMX8x4-HT420M model.
Command and Response
#relay
SET•/MEDIA/RELAY/<relay_port>.Output=<relay_status>
Ý
pw•/MEDIA/RELAY/<relay_port>.Output=<relay_status>
Ü
Parameters
Identifier
Parameter description
<relay_port>
Relay port number
<relay_staus>
Relay port status
Example
Ý SET /MEDIA/RELAY/P1.Output=C
Ü pw /MEDIA/RELAY/P1.Output=C
P1 relay port is set to be closed.
8.14. GPIO Port Settings
INFO: This command is available in MMX8x4-HT420M model.
8.14.1. Set the Direction of a GPIO Pin
Command and Response
#gpio
SET•/MEDIA/GPIO/<gpio_port>.Direction=<dir>
Ý
pw•/MEDIA/GPIO/<gpio_port>.Direction=<dir>
Ü
Parameters
<dir>
I: input direction of the GPIO pin
O: output direction of the GPIO pin
Example
Ý SET /MEDIA/GPIO/P1.Direction=I
Ü pw /MEDIA/GPIO/P1.Direction=I
8.14.2. Set the Output Level of a GPIO Pin
Command and Response
SET•/MEDIA/GPIO/<gpio_port>.Output=<value>
Ý
pw•/MEDIA/GPIO/<gpio_port>.Output=<value>
Ü
Parameter values
P1-P4
O: Open
C: Close
Applied firmware package: v1.2.2b5 | LDC software: v2.2.1
MMX8x4-HT series – User's Manual
Parameters
Identifier
Parameter description
<gpio_port>
GPIO port number
<value>
Value of the GPIO pin
Example
Ý SET /MEDIA/GPIO/P1.Output=H
Ü pw /MEDIA/GPIO/P1.Output=H
8.14.3. Toggle the Level of a GPIO Pin
Command and Response
Ý CALL•/MEDIA/GPIO/<gpio_port>:toggle()
Ü pw•/MEDIA/GPIO/ <gpio_port>:toggle
Example
Ý CALL /MEDIA/GPIO/P1:toggle()
Ü mO /MEDIA/GPIO/P1:toggle
If the direction of the pin is input: the output value is toggled.
If the direction of the pin is output: the output value and the input value are toggled.
8.15. USB Port Settings
8.15.1. USB Host Select
Command and Response
#usb
SET•/MEDIA/USB/USBSWITCH.HostSelect=<USB_host>
Ý
pw•/MEDIA/USB/USBSWITCH.HostSelect=<USB_host>
Ü
Parameters
Identifier
Parameter description
<USB_host>
Active USB-B port
Example
Ý SET /MEDIA/USB/USBSWITCH.HostSelect=1
Ü pw /MEDIA/USB/USBSWITCH.HostSelect=1
Parameter values
P1-P6
H: High level
L: Low level
Parameter values
1-4, 0 means off
123

Advertisement

Table of Contents
loading

Table of Contents