Mute a Linea Research output over TIPI
TL;DR. Linea TIPI is ASCII on TCP 51456. $SET Out1/Mute yes mutes output 1, and $NOP restarts the 120-second timeout. Frames start with $ and end with 0x0D.
This is a commercial product. AgentOnStage isn't paid for this listing.
Commercial productAudioIntermediateLinea ResearchTIPITCP
What it does
Linea's TIPI protocol PDF opens with the title line TIPI PROTOCOL - V1.03. The download Linea lists as TIPI Protocol V1.04 serves that file. Section 1 calls TIPI an ASCII protocol for controlling and monitoring Linea Research products from third-party panels or software, over Ethernet or over RS232 and RS485.
On Ethernet the physical-layer line is a 10/100/1G interface, TCP/IP, port 51456. RS232 and RS485 are listed as 38,400 baud, NRZ, LSB first, 1 start bit, 8 data bits, 1 stop bit, no parity, and no flow control. On RS485 the document says the master has to leave time for a reply, that metering should be polled with Get rather than a subscription, and that a wildcard Get should not be used because it will cause bus contention. The command examples in this PDF start with $ and the command word. They do not include a device name.
A frame is 8-bit ASCII. It starts with $. Fields are separated by one or more spaces. No space is required right after $ or right before the end. The end is a carriage return, written <CR>, \r, ASCII 13, 0x0D. Characters outside a frame are ignored. Spaces are not allowed in name fields. The document suggests an underscore. Numbers are decimal. Letter case in a command does not matter. Responses use uppercase commands, such as SET, and CamelCase method names, such as Out1/Gain. Boolean values come back in lower case, yes and no. A command word needs at least three characters. The document's abbreviation example is NOT for NOTIFY. The device returns the full command word.
A method name is a path, a slash, and a parameter, as in InA/Gain or Out1/Gain. The path examples printed in that section are InA and Out1. A method with no channel, such as Snapshot, has no slash. The value may carry a unit with no space in front of it, -3.8dB or 650.3Hz, or the unit may be left off. The document says the unit is only there to make the line readable, and that the device truncates a number to the precision it can store. Boolean values are yes or no, and the example is InA/Mute yes.
$SET InA/Gain 3.5dB followed by carriage return sets that gain. $GET InA/Gain requests it. The GET section's printed response is $NOTIFY InAGain 3.5dB, with no slash. The responses section prints a different example, $NOTIFY InB/Gain 2.6dB, with the slash. A later GET may not match the SET. The document says values are quantised, and that $SET InA/Gain -22.415dB might store -22.4dB. A SET outside the allowed range is followed by a GET that returns the nearest permitted value.
The script examples at the end of the PDF are three one-line commands. $SET Snapshot 5 recalls snapshot 5. $SET Out1/Mute yes mutes channel 1. $SET InA/Gain -3.2dB sets input A to -3.2 dB. Several commands can share one carriage return. The printed line sets mute on outputs 1 through 4:
$SET Out1/Mute yes $SET Out2/Mute yes $SET Out3/Mute yes $SET Out4/Mute yes
The document says most devices should accept that, and that a limit of 255 characters is not unusual.
$ERROR returns the original message, a short description, and a number. A badly formed message is BadCommand 06. A method the device does not support is UnsupportedMethod 09. Section 7 says not every published method name is reachable, because the vendor may have locked some of them. The method names themselves are a separate list per product. This PDF says to use the list for the device you have.
$NOP is optional, and it is how an Ethernet client keeps the socket open. The device ignores the command and restarts the connection timeout. The timeout for TIPI over IP is 120 seconds, so a NOP has to be sent more often than that.
Mute an Ashly Protea channel over UDP is a binary packet on UDP port 3100. This page is ASCII text on TCP port 51456.
How to set it up
- Open a TCP connection to the amplifier on port 51456. The PDF's Ethernet line is TCP/IP on that port. End every frame with a carriage return, 0x0D.
- Read the output before you mute it. Send
$GET Out1/Muteand wait for a$NOTIFYline. The GET example in the PDF is$GET InA/Gain, answered$NOTIFY InAGain 3.5dB. A method the product does not have comes back as$ERRORwithUnsupportedMethod 09. - Mute output 1 with
$SET Out1/Mute yes. The script section labels that line "Mute channel 1". Boolean values areyesandno. Read it back. The PDF says a stored value can differ from the number you sent, and that an out-of-range SET is stored as the nearest permitted value. - Recall a snapshot with
$SET Snapshot 5. The script section labels that "Recall Snapshot 5". Set a gain with the unit attached and no space, as in$SET InA/Gain -3.2dB, or send the number alone. - If the socket should stay open, send
$NOPmore often than every 120 seconds. The PDF says that command is ignored and that it restarts the Ethernet timeout.
Source: TIPI protocol PDF, title line V1.03.
FAQ
Does the NOTIFY line include the slash?
The GET example prints $NOTIFY InAGain 3.5dB, with the slash missing. The responses section prints $NOTIFY InB/Gain 2.6dB, with the slash. The SET you send uses the slash, as in $SET InA/Gain 3.5dB and $SET Out1/Mute yes.
What keeps the TCP session up?
$NOP and a carriage return. The PDF says the IP timeout is 120 seconds and that NOPs should be sent more often than that. The device performs no operation and restarts the timer.
Can four mutes share one line?
The multiple-substring section prints one carriage return after four $SET OutN/Mute yes commands, for outputs 1 through 4. It says a 255-character limit is not unusual. A method the vendor has locked is not reachable, which is section 7.
Also on this rig
Original source: https://linea-research.co.uk/Downloads/Brochures/Tipi%20Protocol%20V1.04%20RHM.pdf