AVARRO API Command Set
HDMI SWITCHER
4 INPUTS X 4 OUTPUT
Model: 0E-HDMIMX4
RS232 Default Setting
| Parameters | Value |
|---|---|
| Baud Rate | 115200 bps |
| Data bits | 8 bits |
| Parity | None |
| Stop bits | 1 bit |
| Flow control | None |
About Telnet Connection
Before the process of sending the telnet command, establish a telnet connection to the corresponding device.
The form of the telnet command is as follows:
telnet ip (port)
ip: The unit's IP address.port: The unit's port number. This is non-required on some Telnet control tools or platforms. If required, the port number is 23 by default.
Example: If the unit's IP address is 192.168.11.143, the telnet command is telnet 192.168.11.143.
Command Structure
Take the command SET SW in out<CR><LF> as an example:
[SET SW]denotes command keywords, case insensitive.[in out]denotes parameters, case insensitive; incorrect parameters will not be recognized.<CR><LF>denotes a carriage return or a line feed; all commands must be ended with a carriage return or a line feed.
Switch Input for Output
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Switch Input for Output |
Command: Return: Parameter: in = {hdmiin1, hdmiin2...hdmiin4}; out = {hdmiout1, hdmiout2...hdmiout4}; Description: SW is short for Switch. Switch one input source for one output sink. |
Command: Return: Description: Switch input 1 for hdmi output 2. |
| 2 | Switch indicate input for all outputs |
Command: Return: Parameter: in = { hdmiin1, hdmiin2...hdmiin4}; all = {all}; Description: SW is short for Switch. Switch one input source for all output sinks. |
Command: Return: Description: Switch input1 for all output sinks. |
Input Mapping
| No. | Description | Command | Example |
|---|---|---|---|
| 3 | Get which input mapping to the indicate Output |
Command: Return: Parameter: in = {hdmiin1, hdmiin2...hdmiin4}; out = {hdmiout1, hdmiout2...hdmiout4}; Description: MP is short for mapping. Get which input mapping to the indicate Output. |
Command: Return: Description: Get which input mapping to output 1. |
| 4 | Get which output mapping to all input |
Command: Return: Parameter: in = {hdmiin1, hdmiin2...hdmiin4}; out = {hdmiout1, hdmiout2...hdmiout4}; all = {all}; Description: MP is short for mapping. Get which output mapping to all input. |
Command: Return: Description: Get which output mapping to all input. |
CEC Control
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Set CEC POWER ON/OFF |
Command: Return: Parameter: prm = {on, off}; out = {hdmiout1, hdmiout2...hdmiout4, all} Description: Set sink power on or off. |
Command: Return: Description: Set sink hdmi output 1 power on. |
| 2 | Set CEC AUTO POWER ON/OFF |
Command: Return: Parameter: prm = {on, off}; out = {hdmiout1, hdmiout2...hdmiout4}; Description: Set sink auto power Function ON or OFF. |
Command: Return: Description: Set sink hdmi output 1 auto power ON. |
| 3 | Get CEC AUTO POWER ON/OFF Status |
Command: Return: Parameter: prm = {on, off}; out = {hdmiout1, hdmiout2...hdmiout4}; Description: Get Sink auto power Function ON or OFF Status. Default: Off |
Command: Return: Description: Get Sink auto power status, and the status is ON. |
| 4 | Set CEC POWER Delay Time |
Command: Return: Parameter: out = {hdmiout1,hdmiout2...hdmiout4}; prm = {1,2,3...}// according to the actual time counter, 1 means 1 minute, 2 means 2 minutes. Default wait time is 2 minutes, Max wait time is 30 minutes. Description: AUTOCEC_D is short for CEC auto Power Delay Timing. |
Command: Return: Description: When no active signal to hdmi1, 2 minutes later, the unit will auto power off. |
| 5 | Get CEC POWER Delay Time Status |
Command: Return: Parameter: out = {hdmiout1,hdmiout2...hdmiout4}; prm = {1,2,3...}// according to the actual time counter, 1 means 1 minute, 2 means 2 minutes. Default wait time is 2 minutes, Max wait time is 30 minutes. Description: AUTOCEC_D is short for CEC auto Power Delay Timing. Default: 2 |
Command: Return: Description: Get hdmi1 auto power delay time, the result is 2 minutes. |
HDCP
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Set Input HDCP support ON/OFF |
Command: Return: Parameter: prm = {on, off}; in = {hdmiin1, hdmiin2...hdmiin4} Description: HDCP_S will control source hdcp support on or off. |
Command: Return: Description: Set hdmi input 1 hdcp support on. |
| 2 | Get Input HDCP support ON/OFF Status |
Command: Return: Parameter: prm = {on, off}; in = {hdmiin1, hdmiin2...hdmiin4} Description: HDCP_S is short for HDCP support. Default: on |
Command: Return: Description: Get hdmi1 hdcp support on or off status, and the result is on. |
EDID
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Set Input EDID |
Command: Return: Parameter: in = {hdmiin1, hdmiin2...hdmiin4}; prm = {1 ~12} Description: Set Input EDID EDID Options:
|
Command: Return: Description: Set in1 EDID Fix 4K@30Hz/8bit only 2.0ch audio Without HDR. |
| 2 | Get All Input EDID status |
Command: Return: Parameter: in = {hdmiin1, hdmiin2...hdmiin4}; prm = {1 ~13} Description: Get all input EDID Status. Default: 5 EDID Options:
|
Command: Return: Description: Get all input EDID Status. |
| 3 | Get one input EDID Status |
Command: Return: Parameter: in = {hdmiin1, hdmiin2....hdmiin4}; prm = {1 ~13} Description: Get one input EDID Status. Default: 5 EDID Options:
|
Command: Return: Description: Get in1 edid status, and the status is Fix 4K@30Hz/8bit only 2.0ch audio Without HDR. |
System Info
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Factory reset |
Command: Return: Description: Factory reset. |
Command: Return: Description: Factory reset all board. |
| 2 | System reboot |
Command: Return: Description: System reboot. |
Command: Return: Description: System reboot. |
| 3 | Get the API list |
Command: Description: Get the API list. |
Command: Description: Get the API list. |
| 4 | Set IP Mode |
Command: Return: Parameter: pcm= {static, dhcp} Description: Set IP mode. Default: DHCP |
Command: Return: Description: Set IP mode is dhcp. |
| 5 | Get IP Mode |
Command: Return: Parameter: pcm= {static, dhcp} Description: Get IP mode. Default: DHCP |
Command: Return: Description: IP mode is dhcp. |
| 6 | SET IP address |
Command: Return: Description: SET IP address. |
Command: Return: Description: Set IP address is 192.168.1.4, MASK is 255.255.255.0, GATE is 192.168.1.1. |
| 7 | GET IP address |
Command: Return: Description: GET IP address. |
Command: Return: Description: Get IP address is 192.168.1.4, MASK is 255.255.255.0, GATE is 192.168.1.1. |
Update info
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Get selected target firmware version |
Command: Return: Parameter: prm = {...}// according to actual firmware version Description: Get selected target firmware version. |
Command: Return: Description: Get all module firmware version. |
| 2 | Upgrade module |
Command: Return: Parameter: prm= {MASTER, ARM} Description: Upgrade module. |
Command: Return: Description: Upgrade module. |
Preset scene
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Save Preset Scene |
Command: Return: Parameter: prm = {1,2,3}// Description: Save Preset Scene. |
Command: Return: Description: Save preset scene. |
| 2 | Restore Preset Scene |
Command: Return: Parameter: prm = {1,2,3}// Description: Restore Preset Scene. Default: mp hdmiin1 hdmiout1 mp hdmiin2 hdmiout2 mp hdmiin3 hdmiout3 mp hdmiin4 hdmiout4 |
Command: Return: Description: Restore preset scene. |
Audio
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Set Audio Output mute |
Command: Return: Parameter: pcm = {on, off}; // on means mute; off means unmute; out = {audioout1, audioout2,...audioout4, all}; Description: Set Audio mute or not mute. |
Command: Return: Description: Set audioout1 mute on. |
| 2 | Get Audio Output mute status |
Command: Return: Parameter: pcm = {on, off}; // on means mute; off means unmute; out = {audioout1, audioout2,...audioout4, all}; Description: Get Audio Output mute status. Default: off |
Command: Return: Description: Get Audio Output mute status. |
Scaler
| No. | Description | Command | Example |
|---|---|---|---|
| 1 | Set video Output scaler |
Command: Return: Parameter: pcm = {on, off}; // on means scaler; off means not scaler; out = {hdmiout1, hdmiout2,...hdmiout4, all }; Description: Set Video scaler or not scaler. |
Command: Return: Description: Set hdmiout1 scaler on. |
| 2 | Get video Output scaler status |
Command: Return: Parameter: pcm = {on, off}; // on means mute; off means unmute; out = {hdmiout1,hdmiout2,... hdmiout4, all}; Description: Get video Output scaler status. Default: on |
Command: Return: Description: Get video Output scaler status. |

