7.LW3Programmer'sReference
HDMI-TPS-TX200series–User'sManual
114
Appliedfirmwarepackage:v1.3.2b3 | LDCsoftware:v2.5.7b2
7.17.
RS-232 Message Sending
7.17.1.
Sending a Message (ASCII-format) via RS-232
ThecommandisforsendingacommandmessageinASCII-format.Thismethod
allows
escapingthecontrol
characters. For more information see the
Command and Response
#message
ç
CALL·/MEDIA/UART/P1:sendMessage(
<message>
)
æ
mO·/MEDIA/UART/P1:sendMessage
Example
ç
CALL/MEDIA/UART/P1:sendMessage(PWR0)
æ
mO/MEDIA/UART/P1:sendMessage
The'PWR0'messageissentoutviatheP1serialport.
7.17.2.
Sending a Text (ASCII-format) via RS-232
ThecommandisforsendingacommandmessageinASCII-format.Thismethod
does not require
escaping
thecontrolandnon-printablecharacters.
Command and Response
ç
CALL·/MEDIA/UART/P1:sendText(
<message>
)
æ
mO·/MEDIA/UART/P1:sendText
Example
ç
CALL/MEDIA/UART/P1:sendText(open)
æ
mO/MEDIA/UART/P1:sendText
The'open'textissentoutviatheP1serialport.
7.17.3.
Sending a Binary Message (HEX-format) via RS-232
ThecommandisforsendingabinarymessageinHexadecimalformat.Thismethod
does not require
escaping
thecontrolandnon-printablecharacters.
Command and Response
ç
CALL·/MEDIA/UART/P1:sendBinaryMessage(
<message>
)
æ
mO·/MEDIA/UART/P1:sendBinaryMessage
Example
ç
CALL/MEDIA/UART/P1:sendBinaryMessage(433030)
æ
mO/MEDIA/UART/P1:sendBinaryMessage
The'433030'messageissentoutviatheP1serialport.
7.17.4.
Using Hexadecimal Codes
HexadecimalcodescanbeinsertedintheASCIImessagewhenusing:
sendMessage command:
CALL /MEDIA/UART/P1:sendMessage(C00\x0D)
tcpMessage command:
CALL /MEDIA/ETHERNET:tcpMessage(C00\x0D)
udpMessage command:
CALL /MEDIA/ETHERNET:udpMessage(C00\x0D)
▪
C00
:themessage.
▪
\x
:indicatesthatthefollowingisahexadecimalcode.
▪
0D
:thehexadecimalcode(CarriageReturn).