Interactivity via Ethernet

From SpinetiX Support Wiki

Jump to: navigation, search

This page is about interactivity with external devices connected via the Ethernet port to the HMP350, HMP200, HMP130, and HMP100 devices.

Introduction

Example of network interactivity

Interactivity via Ethernet refers to the HMP quality of reacting in a user-defined manner (i.e. reactive action), following the input received from external devices via Ethernet. This means that the HMP can be "controlled" over the network from:

... and so on.

The Shared Variables mechanism allows any device / application to communicate with the HMP through simple HTTP requests or TCP socket connections.

Configuration

To enable interactivity via Ethernet on the HMP, you need to make sure that the SV Network API is enabled on the device.

How to create interactive content

You can easily create interactive content with Elementi built-in interactive widgets:

  • Action to Switch widget switches to displaying a different content when a designed Shared Variable is updated.
  • Click to Action & Key to Action widgets update a Shared Variable on another HMP following a click / key press event.
  • Media Playback widget changes the playing mode of a media when a designed Shared Variable is updated.

Data feed widgets can also be used to display the content of a Shared Variable as demonstrated within the Instant messaging project.

How to update a Shared Variable

There are multiple ways to update a Shared Variable, for instance you could:

  • Type "http://HMP_address:1234/update?shared_var_name=new_value" into your browser's address field.
  • Open the "Shared Variable AJAX Updater" html script in a browser. Or the Shared Variable Updater if the former poses any problems.
  • Use the Click to Action / Key to Action widgets to update a Shared Variable on another HMP following a click / key press event.
    To connect to a remote Shared Variable, use the variable name followed by '@' and the hostname or IP address of the remote HMP and, optionally, by a TCP port (if the port number on the server is different from the port number on the local host) - e.g., var@remotehost:4567.
  • Advanced:

Advanced

For advanced users / developers, some good resources for creating complex interactive content can be found on these pages:

See also

This page was last modified on 18 April 2019, at 15:16.