Sending A Binary Message (Hex-Format) Via Serial Port; Sending A Message (Ascii-Format) Via Serial Port; Sending Hex Codes In Little-Endian Format Via Ir Port - Lightware UBEX Series User Manual

Matrix application mode, av over ip multimedia extender
Table of Contents

Advertisement

 
 
9. Programmer's Reference
9. Programmer's Reference
9.21.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/CONTROL/UART/<port>/PORT:sendBinaryMessage(<message>)
æ mO•/MEDIA/CONTROL/UART/<port>/PORT:sendBinaryMessage
Example
ç CALL /MEDIA/CONTROL/UART/P101/PORT:sendBinaryMessage(433030)
æ mO /MEDIA/CONTROL/UART/P101/PORT:sendBinaryMessage
The '433030' binary message ('C00' in ASCII format) is sent out via the P1 serial port.
9.21.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
Escaping
section.
Command and Response
ç CALL•/MEDIA/CONTROL/UART/<port>/PORT:sendMessage(<message>)
æ mO•/MEDIA/CONTROL/UART/<port>/PORT:sendMessage
Example
ç CALL /MEDIA/CONTROL/UART/P101/PORT:sendMessage(PWR0)
æ mO /MEDIA/CONTROL/UART/P101/PORT: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
1
Applied F-series endpoint firmware package: v1.4.1 | Applied R-series endpoint firmware package: v1.4.1 | Applied MMU firmware package: v1.2.1 | LDC software: v1.34.0b2
UBEX series – Matrix Application Mode – User's Manual
UBEX series – Matrix Application Mode – User's Manual
><\x0d\x0a>...<command
><\x0d\x0a>
2
n
9.21.4. Sending Hex Codes in Little-endian Format via IR Port
Command and Response
ç CALL·/MEDIA/CONTROL/IR/<out>/PORT:sendProntoHex(<hex_code>)
æ mO·/MEDIA/CONTROL/IR/<out>/PORT:sendProntoHex
Parameters
Identifier
Parameter description
<hex_code>
Pronto hex format code

INFO:
This command can send exactly one pronto hex message. The header of the IR code contains the
length of the whole code in hexa format. If the code is deficient or duplicated, it causes syntax error.
TIPS AND TRICKS:

Download a code which belongs to your controlled device from a web database from
the Internet.
Example
ç CALL /MEDIA/CONTROL/IR/D101/PORT:sendProntoHex (00006D0025000300A900A80015 003F00150
03F0015003F0015001500150015001500150015001500150 0150015003F0015003F001500
3F00150015001500150 015001 500150015001500150015003F0015003F0015003F00150015001500
150015001500150015001500150015001500150015001500150015003F0015003F0015003F0015003
F0015003F0015000207A900A8001500150015006E0E)
æ mO /MEDIA/CONTROL/IR/D101/PORT:sendProntoHex
Parameter values
Accepts
maximum
765
character-long
code
hexadecimal format (0-9; A-F; a-f) without space
character in little-endian system.
148
148
in

Advertisement

Table of Contents
loading

Table of Contents