
7. Programmers’ Reference
series – Extender Application Mode – User's Manual
129
7. Programmers’ Reference
series – Extender Application Mode – User's Manual
129
EXTENDER APPLIC
A
TION MODE
Applied F-series endpoint firmware package: v2.0.0 | Applied R-series endpoint firmware package: v2.0.0 | LDC software: v2.5.9b3
7.15.3. Change Command Injection Port Number
Command and Response
ç
SET·/MEDIA/IR/
<in
|
out>
.CommandInjectionPort=
<port_no>
æ
pw
·
/MEDIA/IR/
<in
|
out>
.CommandInjectionPort=
<port_no>
Example
ç
SET /MEDIA/IR/S1.CommandInjectionPort=9001
æ
pw /MEDIA/IR/S1.CommandInjectionPort=9001
7.15.4. Enable/Disable Output Signal Modulation
Command and Response
ç
SET·/MEDIA/IR/
<out>
.EnableModulation=
<logical_value>
æ
pw
·
/MEDIA/IR/
<out>
.EnableModulation=
<logical_value>
Parameters
Parameter
Parameter description
Value
Value description
<logical_value>
Signal modulation enable/
disable setting
true
The signal modulation is enabled.
false
The signal modulation is disabled.
Example
ç
SET /MEDIA/IR/D1.EnableModulation=false
æ
pw /MEDIA/IR/D1.EnableModulation=false
INFO:
The default setting value is
true
(enabled).
7.16. Message Sending via Communication Ports
DIFFERENCE:
Only the UBEX-PRO20-HDMI-F110 model has built with serial and Infrared interface ports.
7.16.1. Sending a Text (ASCII-format) via Serial Port
The command is for sending a command message in ASCII-format. This method
does not allow
sending
message with control and non-printable characters.
Command and Response
ç
CALL•/MEDIA/UART/
<port>
:sendText(
<message>
)
æ
mO•/MEDIA/UART/
<port>
:sendText
Example
ç
CALL /MEDIA/UART/P1:sendText(open)
æ
mO /MEDIA/UART/P1:sendText
The 'open' text is sent out via the P1 serial port.
#message
7.16.2. Sending a Binary Message (HEX-format) via Serial Port
The command is for sending a command message in Hexadecimal-format. This method
does not require
escaping
the control and non-printable characters.
Command and Response
ç
CALL•/MEDIA/UART/
<port>
:sendBinaryMessage(
<message>
)
æ
mO•/MEDIA/UART/
<port>
:sendBinaryMessage
Example
ç
CALL /MEDIA/UART/P1:sendBinaryMessage(433030)
æ
mO /MEDIA/UART/P1:sendBinaryMessage
The '433030' binary message ('C00' in ASCII format) is sent out via the P1 serial port.
7.16.3. Sending a Message (ASCII-format) via Serial Port
The command is for sending a command message in ASCII-format. This method
allows
escaping the control
characters, see the
section.
Command and Response
ç
CALL•/MEDIA/UART/
<port>
:sendMessage(
<message>
)
æ
mO•/MEDIA/UART/
<port>
:sendMessage
Example
ç
CALL /MEDIA/UART/P1:sendMessage(PWR0)
æ
mO /MEDIA/UART/P1:sendMessage
The 'PWR0' message is sent out via the P1 serial port.
Escaping in the Message
When commands need to be separated by <CR><LF> characters to be recognized by the controlled device,
then they need to be escaped. You can use the following format for escaping:
<command><\x0d\x0a><command><\x0d\x0a>...<command><\x0d\x0a>