BARIX Streaming Client Installation Guide Page 19

  • Download
  • Add to my manuals
  • Print
  • Page
    / 63
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 18
3.4 TCP command interface
The TCP command interface can be enabled via the WEB UI, by default is off
commands are sent to a configured TCP port, only one client can be
connected at a time
the connection stays open until the client closes it or is closed by the Barix
unit after configurable period of inactivity (timeout in seconds)
A command sequence is terminated by one of the following characters: 0x0A
(ASCII LF), 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=10<LF>
Unless “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 off
commands are sent to a configured UDP port
commands are processed in sequences, there is one command sequence
per UDP packet, maximum length of a command sequence is 512 bytes
command sequence is either non-terminated or can be terminated by one of
the following 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 port
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=10<LF>
Unless “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 bytes
3.6 List of commands
Element Description CGI
command
PLAY Restarts current stream c=1
NEXTSONG If current source is playlist, next song starts playing. c=4
PREVSONG If current source is playlist, previous song starts
playing.
c=5
SHUFFLEON Shuffle on. c=6
SHUFFLEOFF Shuffle off. c=7
MUTE Toggle volume mute. c=8
CHANNELINC Increment channel number (see chapter 7 IR control
interface).
c=15
BARIX AG | 19/63
Page view 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 62 63

Comments to this Manuals

No comments