API commands

Note: -__.The IP address assigned to the example amplifier in this document is 192.168.0.172. Be sure to use the correct IP address for your network.

Input Gain Control

Send a POST request with URL “amplifier IP address/cgi/com.cgi” and data “iCh?_Gain=???”

Where valid values are iCh(1‒4) and gain range of (0‒ -12).

Example

Set gain of channel 1 to -5dB:

Copy
http://192.168.0.172/cgi/com.cgi
oCh1_Volume=-5

Output Gain Control

Send a POST request with URL “amplifier IP address/cgi/com.cgi” and data “oCh?_Gain has range of 1 or 2” and the gain value is 0‒100.

Example

Copy
http://192.168.0.172/cgi/com.cgi
oCh2_Gain= 58

Output Channel Mute Control

Send a POST request with URL “amplifier IP address/cgi/com.cgi” and data “oCh?_Mute has range of 1 or 2” and values are 0 (play/unmute) or 1(mute).

Example

Copy
http://192.168.0.172/cgi/com.cgi
oCh1_Mute=1

Save or Cancel Commands

Send a POST request with URL “amplifier IP address/cgi/com.cgi” and data “COMMAND=x”

Where:

  • X = 1 -> reset

  • X = 2 -> save

  • X = 3 -> cancel

Example

Copy
http://192.168.0.172/cgi/com.cgi
COMMAND=2

Rear Knob Enable/Disable

page | 3© 2017 Episode®

REAR KNOB ENABLE/DISABLE

Send a POST request with URL “amplifier IP address/cgi/com.cgi” and data “oCh?_RearKnobEnabled=?”

oCh can be 1 or 2 and value can be 0 (disabled) or 1 (enabled)

Where:

  • X = 1 -> reset

  • X = 2 -> save

  • X = 3 -> cancel

Example

Copy
http://192.168.0.172/cgi/com.cgi
oCh2_RearKnobEnabled=1

Audio Routing

Send a POST request with URL “amplifier IP address/cgi/com.cgi” and data ““iCh[1‒4]_oCh[1‒2]_Set=[0/1]”

Input channel X to output channel Y = (not connected(0) or connected (1).

Example 1: Connect input 3 to output 1

Copy
http://192.168.0.172/cgi/com.cgi
iCh3_oCh1_Set=1

Example 2: Disconnect input 4 from output 2

Copy
http://192.168.0.172/cgi/com.cgi
iCh4_oCh2_Set=0

Info Request

Getting information can be done via a GET request.

Example

Copy
http://192.168.0.172/xml/status.xml