This article demonstrates shows how to send a serial command when a UDP message is received by the player.
...
Configure the serial port setting by navigating to Presentation Settings > Interactive > Connectors. The serial settings from this panel must match the serial settings of the device you would like the player to communicate with (i.e. Baud rate, Data bits, Parity, Stop bits, Protocol, Send EOL, Receive EOL). The 3.5mm serial connector on the player is referred to as "Port 0".
...
...
...
Navigate to Presentation Settings > Interactive > Networking and ensure the UDP Destination Port and UDP Receiver Port to the same value as on your AMX controller (or other UDP application).
...
Both the UDP Destination Port and UDP Receiver Port should be set to the same value.
...