Audio Objects

 Controls - Command String

Command String blocks allow serial control of external devices via the Serial Control Port or the IP Network. Alternatively, if active third party control feedback is required please see the Subscriptions information in the TTP section.

When a control input node along the top of the block receives a HIGH logic signal (specifically, a LOW-to-HIGH logic transition), it will trigger a user-defined string to be transmitted from the unit’s serial port or network connection. Commands can also be initiated using the Send command button within the control dialog box.

  

  

Initialization Dialog

 

Command String CountProvides a drop-down where the number of channels can be selected. If Custom is selected from the drop-down list the number of channels between 1 and 32 can be specified.

Logic Output CountProvides drop-down where the number of Logic Outputs can be selected. If Custom is selected from the drop-down list the number of nodes between 0 and 32 can be specified.

Command Destination: Select either a Serial port or Network (IP) port.

Equipment TypeSpecifies what type of hardware the Compiler should allocate the block to. Review the Equipment Type section for more details.

  

  

DSP Block Representation

Network Command String: 

 

Serial Command String: 

 

See the Logic Charts page of System Control for more information. 

  

  

Control Dialog

Network Command String

 

InputRelates to the corresponding logic Input. 

Command IDThe send button allows manual transmission of the command string. 

Command StringShows the data that will be sent. 

IDNumber that relates to the corresponding Expected Response. 

Expected ResponseUser defined character string to be used in pattern matching. 

Logic OutputAllows a Logic Output node to be associated with an Expected Response. The Logic Output will momentarily pulse a logical HIGH ( for 250ms). 

EditAllows editing of the respective Command String or Expected Response. 

Move Up / Move DownAllows the Expected Response string order to be re-ordered as needed. This is important because the pattern matcher starts at the top of the list and works its way down looking for a complete match. 

Connection LogDisplays character strings sent/received while connected to a live system. 

Status LEDShows Connection Status and Communication Activity. 

  

Serial Command String

 

InputRelates to the corresponding logic Input. 

Command IDThe send button allows manual transmission of the command string. 

Command StringShows the data that will be sent. 

EditOpens the Edit Command String Dialog.

  

Edit Command String Button

The Edit Command String button applies to both the Serial Command String block and the Network Command String Block. 

Selecting the Edit button will display the following dialog and allow the Command ID name and String to be defined. 

 

 

Control Surface

Control Dialog Boxes for Command String components can be minimized to create user control surfacesSee the Software User Interface section of the Screen Elements, Lines, and Labeling page for additional information. 

  

  

Properties Sheets

Network and Serial properties menus are docking menus. See the Docking Menus section of the Menu Navigation page for additional details. 

  

Network Command String Block Properties

 

Command IDThe send button allows manual transmission of the command string. 

Command StringShows the character string that will be sent. 

DestinationIdentifies connection type as Network or Serial, defined at block initialization.

ProtocolDefines transport type as TCP or UDP.

Server AddressTarget IP or hostname of the 3rd party network device the block will be communicating with.

Local Port: (UDP only) The local port, on Tesira, that will be used. 0 - 65,535.

Remote PortThe target port at the previously defined Server Address target IP that will be used. 0 - 65,535.

Auto ConnectAttempts to establish session communications automatically. Re-connection attempts will recur every 3 seconds as needed.

Connection SequenceIntended for session negotiation sequence.

  

The Connection Sequence is a list of strings that the Tesira Server monitors for a match and will return a response as defined in this list. For example, if a command string from third party device (sent to Tesira) matches any of the Connection Sequence items, the corresponding ‘Response’ string will be sent back to the 3rd party control device.

Since the 3rd party control device can send a string of any length, with or without special characters and/or spaces and new lines, it can be difficult for an exact match to occur. Extra care should be taken when defining the values sent and what is expected to be received when configuring this list. Clicking the '...' button will display the Connection Sequence dialog where the Connection and Response values can be specified.

  

Serial Command String Properties

 

Command IDThe send button allows manual transmission of the command string. 

Command StringShows the character string that will be sent. 

DestinationIdentifies connection type as Network or Serial, defined at block initialization.

Serial PortAllows selection of available serial ports on the hardware device as available.

  

The Serial Command String block will only transmit strings from serial port of the unit to which the block has been allocated. On a SERVER-IO and SERVER, it can be either of the ports depending on how they are configured. On TesiraFORTÉ, TesiraLUX and the EX-LOGIC there is only one serial port. The Property Sheet allows selection of which port is used.

Consider fixing the allocation of Command String blocks to prevent the block from being unexpectedly allocated to the wrong device.

The Baud rate for the serial port for the SERVER IO, SERVER, TesiraFORTÉ and TesiraLUX is configured in Device Maintenance under Serial Port Settings.

The Baud rate for the serial port for the EX-LOGIC is configured in Expander device maintenance in the EX Logic Serial Device Settings section.

  

  

Response Pattern Matching

ASCIIThese are case sensitive and most commonly alphanumeric and human-readable characters. Example: Power_On

Escape CharacterThis is a character used to indicate that the following two characters will be hexadecimal digits. Example: ~0A

?A question mark (?) is a wildcard that will match any single printable character (including space but excluding carriage return, line feed or newline) in the input.

*An asterisk (*) in the pattern matches zero or more printable characters (including space) in the input. The asterisk matches as few characters as are necessary to find a match in the input. 

  

The block matches against each Response Pattern to receive input from the remote device. This includes previously received, but unmatched data remaining in the input buffer.

Both the order and content of the patterns are important. The following guidelines are recommended:

  

Device Indicators and Controls

Response Commands: Indicates expected response.