Skip to content

OSC interface ‐ Ethernet to GPO

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

Ethernet to GPO

Listening port:

Defaults to 12321, could be any number between 1024 and 65535. Set it through the web interface. A factory reset puts this number back to 12321.

When the port is set to zero, all incoming messages will be ignored and the first 6 leds will not be lit.

Argumentless message and 'auto open'

An OSC message without an argument (/press/bank/1/1) will close a contact and automatically open it again after the set time. This time by default 15 milliseconds. Set it through the web interface.

OSC message with argument

When an argument is provided (either 1 or 0), the contact is kept closed (1) or opened (0) permanently until another message is received.

Screenshot 2024-05-20 at 19 40 04

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

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 '{
{
  'ethernet_to_gpo': {
    'port': 12321,
    'autoUpDuration': 15
  }
}