RS232 Communications makes it possible to send and receive data between the player and an external device. Examples of external devices include: HDMI switches, TVs, and alarms. Most USB to RS232 adapters using Prolific or FTDI chipsets are supported.
Examples:
- When a specific item is displayed or condition is true, an HDMI switch can change the input to display alternative video source.
- A TV could be turned on or off or the volume updated.
- A special item can be displayed when an alarm goes off.
RS232 Configuration
Special configuration data is required to setup the communications. The configuration must be added to screen data.
Name | Example | Description |
---|---|---|
rs232config |
9600,8,1,none |
Set the baudrate to 9600, data bits to 8, stop bits to 1 and parity to none. |
RS232 Output
To send a command to the serial device, add the command to the data of an item.
Name | Example | Description |
---|---|---|
rs232output |
avi=1 |
When the item displays, this will send avi=1 to the serial device. |
By default, ASCII data will be sent to the serial device. To send binary data to the serial device, encode to hex and add rs232outputFormat=hex
to the data.
Name | Example | Description |
---|---|---|
rs232outputFormat |
hex |
The output is provided as HEX and should be converted to binary before sending. |
rs232output |
AA11FF010112 |
When the item displays, this will send AA11FF010112 to the serial device. |
The rs232output
data will only be sent to the device when the value changes. This prevents continuously sending the same data.
To send data when the player starts. The data can be added to a variable named rs232outputAtStart
in screen data.
RS232 output communications requires loader version 12.5, player version 11.2 or above and a compatible USB to RS232 adapter.
RS232 Input
The player monitors data sent from external serial devices. After a CR or LF is received, the ASCII text string is added to a screen data variable named rs232input
and can be used in condition evaluation, as an event trigger or read using the JavaScript Interface on a web page.
Only ASCII data separated by CR or LF is supported. RS232 input communications requires player version 21.3 or above.
Comments
0 comments
Please sign in to leave a comment.