Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article demonstrates shows how to send a serial command when a UDP message is received by the player.

...

  1. Create In a new presentation.Under , under Layout > Zones click Zones, select Add Zone.

  2. Resize the zone, give it a name . In this (for example, we’ve named the zone "Event Handler."

  3. Under Properties > Type set the zone to an Audio zone.

image-20240409-232835.pngImage Removed

...

Go to the Content tab. Alternatively, from the Layout tab, double-click the zone. 

...

  1. "), and under Type, select Audio.

    image-20240410-184814.pngImage Added

  2. Switch to the Content tab and toggle the Interactive switch to on.

...

  1. Go to Widgets and drag and drop the Event Handler widget

...

  1. into the playlist area.

image-20240410-185704.pngImage Removed

  1. Under Events,

...

  1. select the UDP event to activate it, and then

...

  1. select the Event Handler state to attach it

...

  1. , as shown in the image below

    image-20240410-185704.pngImage Added

  2. In Event Properties > Specify UDP Input enter the UDP input that the player will be listening for (

...

  1. for example, “AMX_Command1").

...

  1. image-20240410-185810.pngImage Added

  2. With the state selected (notice that Event Properties turns to State Properties),

...

  1. select Add Command inthe Advanced tab

...

  1. .

    1. Select the type of serial command

...

    1. to send

...

    1. (Serial-send string with EOL, Serial-send string without EOL, or Serial send byte) once the UDP input message is received.

image-20240410-190133.pngImage Removed

    1. Enter the serial command string/value.

image-20240410-190500.pngImage Removed

  1. 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".

 

...

...

  1. Go to Presentation Settings > Interactive > Networking and ensure the UDP Destination Port and UDP Receiver Port

...

  1.  are set to the same value as

...

  1. your UDP controller (the AMX controller

...

  1. in these images).

Note: Both the UDP Destination Port and UDP Receiver Port should be set to the same value.

...