Skip to content

OSC interface ‐ GPI to Ethernet

Bart De Lathouwer edited this page May 20, 2024 · 4 revisions

GPI to Ethernet

Target Host and Port

When a contact is closed on the gpio 6i6o port, it generates an OSC message and sent to a host on a port.

Example: if contact 4 is closed, OSC bundle /press/bank/1/4 is sent to 192.168.0.100 on port 12321.

By default, these values are not set and no outgoing messages will be sent when a GPI contact closes. The leds on the front of the device will not be lit. When you provide a host and port (and Save), the leds will light up.

Screenshot 2024-05-20 at 19 40 04 (1)

Hit the Save button and changes will take effect immediately (no reboot needed).

Contact changes

By default, a OSC bundle is sent when contact closes, not when it opens again. This behaviour can be changed in the web interface, generating also a message when the contact opens again.

Using CURL to set the settings

All the above setting can be sent to the device using CURL, Insomnia or Postman (or any other REST API tool).

Example:

curl --request POST \
  --url http://192.168.0.220/osc \
  --header 'Content-Type: application/json' \
  --data '{
{
  'gpi_to_ethernet': {
    'host': '0.0.0.0',
    'port': 12321,
    'reactOnContactClosed': true,
    'reactOnContactOpen': false
  }
}