12.07.2015 Views

Technical Documentation - Barix

Technical Documentation - Barix

Technical Documentation - Barix

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.4 TCP command interface●●●●●The TCP command interface can be enabled via the WEB UI, by default is offcommands are sent to a configured TCP port, only one client can be connected at atimethe connection stays open until the client closes it or is closed by the <strong>Barix</strong> unit afterconfigurable period of inactivity (timeout in seconds)A command sequence is terminated by one of the following characters: 0x0A (ASCIILF), 0x0D (ASCII CR) or 0x00 (binary end of string)If password is set on the unit the command execution is password protected.A valid password must be sent within each command sequence using “a=” command,e.g.: a=password&v=10Unless “L=” is a part of the command string an answer “OK\r\n” (ASCII 0x4F, 0x4B,0x0D, 0x0A) is returned in case of success or “ERROR\r\n” (ASCII 0x45, 0x52, 0x52,0x4F, 0x52, 0x0D, 0x0A) in case of an error (including password mismatch)3.5 UDP command interface●●●●●●●The UDP command interface can be enabled via the WEB UI, by default is offcommands are sent to a configured UDP portcommands are processed in sequences, there is one command sequence per UDPpacket, maximum length of a command sequence is 512 bytescommand sequence is either non-terminated or can be terminated by one of thefollowing characters: 0x0A (ASCII LF), 0x0D (ASCII CR) or 0x00 (binary end of string)command response is sent in one UDP packet to the originating IP address and port;the source port is the UDP command portIf password is set on the unit the command execution is password protected.A valid password must be sent within each command sequence using “a=” command,e.g.: a=password&v=10Unless “L=” is a part of the command string an answer “OK\r\n” (ASCII 0x4F, 0x4B,0x0D, 0x0A) is returned in case of success or “ERROR\r\n” (ASCII 0x45, 0x52, 0x52,0x4F, 0x52, 0x0D, 0x0A) in case of an error (including password mismatch)command response is truncated to 512 bytes3.6 List of commandsElement Description CGIcommandPLAY Restarts current stream c=1NEXTSONG If current source is playlist, next song starts playing. c=4PREVSONG If current source is playlist, previous song starts playing. c=5SHUFFLEON Shuffle on. c=6SHUFFLEOFF Shuffle off. c=7MUTE Toggle volume mute. c=8CHANNELINCCHANNELDECIncrement channel number (see chapter 7 IR controlinterface).Decrement channel number (see chapter 7 IR controlinterface).c=15c=16BARIX AG | 16/58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!