The text of a manual · part 5 of 8
IPL T S Series IP Link Ethernet Control Interfaces User's Manual, pages 41 to 50
Pages 41 to 50 of 79
The original document is the PDF (4.8 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Extron IPL T S1, Extron IPL T S4 and Extron IPL T S2
Page 41
IPL T S Series
4
Chapter Four
Communication and Control Programmer’s Guide for Telnet and Web Browsers Customization Advanced Serial Port Control Troubleshooting
Page 42
Communication and Control Programmer’s Guide for Telnet and Web Browsers Using the command/response table The following are either Telnet (port 23) or Web browser (port 80) commands. There are some minor differences when you are implementing these commands via Telnet or via URL encoding using a Web browser. All commands listed below work using either connection method; but, due to some limitations of the Web browser, the encapsulation characters are modified to make sure that the Web browser properly handles them. All examples in the command/response table on page 4-6 show the proper implementation in a Telnet or Web browser session. N For Web browsers: all non-alphanumeric characters must be represented as their hex equivalent, for example, %xx where xx equals the two character representation of the hex byte that needs to be sent (for example, a comma would be represented as %2C). Telnet
Web Browser
Escape (Hex 1B)
W [must not be encoded]
Carriage Return (Hex 0D)
Pipe Character (|) [must not be encoded]
When these commands are used through a Web browser, the URL reference is used below to shorten the examples. This would in practice be the full URL of the control interface and Web page reference including all path information. For example, http://192.168.100.10/myform.htm. To send any of the commands using a Web browser, you need to prefix them with the full URL followed by ?cmd=. See “URL Encoding”, later in this chapter. N With Telnet you can use either the “Escape” commands with the carriage return or the “W” commands with the pipe (|) character. With the Web browser you are required to use the “W” commands and the pipe character. The “Command/response table for Simple Instruction Set (SIS™) commands” later in this chapter lists the commands that the IPL T S interface recognizes as valid, the responses that are returned to the host, a description of the command’s function or the results of executing the command, and an example of each command in ASCII (Telnet) and URL Encoded (Web). N Upper- and lowercase text can be used interchangeably except where noted. Symbol definitions are shown below. An ASCII to HEX conversion table is also provided in figure 4-11 (below). ASCII to HEX Conversion Table •
Figure 4-11 - ASCII-to-HEX conversion table
4-2
IPL T S Series • Communication and Control
Page 43
Symbol definitions ] = CR/LF (carriage return/line feed) } = Carriage return (no line feed) • = Space character X! = Specific port number (01-99)
The port number is represented as two ASCII characters (2 bytes). For example, port 05 would be represented as 30 35 in hex.
X@ = Command data section
X@ is the command string for sending data to an A/V product (for example, a switcher or projector) attached to an IPL T S unit. For remote processing examples, see “Customization” later in this chapter.
N
See "URL Encoding” for command restrictions.
X# = Greenwich Mean Time (GMT) offset value (-12.0 to +14.0) X% = On/Off status: 0 = Off/Disable; 1 = On/Enable X1! = Unit version number X1@ = Name is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus sign/ hyphen (-). No blank or space characters are permitted as part of a name. No distinction is made between upper and lower case. The first character must be an alpha character. The last character must not be a minus sign/hyphen.
X1# = Set local date and time format (MM/DD/YY-HH:MM:SS) (for example, 02/01/06-10:54:00) Read local date and time format (day of week, date month year HH:MM:SS) (for example, Tues, 14 Feb 2006 18:19:33)
X1$ = IP address (xxx.xxx.xxx.xxx). Leading zeros in each of four fields are optional in setting values, and are suppressed in returned values.
X1% = Domain name (for example, extron.com, icia.org) X1& = Time in tens of milliseconds to wait for characters coming into a serial port before terminating (default = 1 = 10 ms, max. = 32767)
X1* = Hardware (MAC) address (xx-xx-xx-xx-xx-xx) X1( = Subnet mask (xxx.xxx.xxx.xxx). Leading zeros in each of four fields are optional in setting values and are suppressed in returned values.
X2) = Time in tens of milliseconds to wait between characters coming into a serial port before terminating (default = 2 = 20 ms, max. = 32767) X2! = Parameter to set either Length of message to receive or Delimiter value. If length delimited, use xxL, where xx is the length of the incoming message in bytes. If character delimited, use xxD, where xx is the decimal ASCII value of the delimiting character.
X2@ = Verbose/response Mode: 0 = clear/none; 1 = verbose mode; 2 = tagged responses for queries;
3 = verbose mode and tagged responses for queries. (Default = 0 for Telnet connections, 1 for RS-232 host control).
N
If tagged responses is enabled, all read commands return the constant string + the data, as setting the value does. For example, Command: Esc CN }
Response: Ipn • X1@ } X2# = Priority status for receive timeout: 0 = priority set to Send Data String command parameters; 1 = priority set to Configure Receive Timeout command parameters.
X2% = Baud rate: 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 115200
X2^ = Parity: Odd, Even, None, Mark, Space (only the first letter is required) X2& = Data bits: 7, 8 X2* = Stop bits: 1, 2 X2( = Port type: 0 = RS-232; 1 = RS-422; 2 = RS-485 X3) = Flow control: Hardware, Software, None (only the first letter is needed) X3! = Data pacing (specified in milliseconds between bytes): 0–1000 (default = 0 ms) X3# = Password: allows a maximum length of 12 alpha numeric characters. Special characters are not allowed.
N
User password cannot be assigned if no administrator password exists and returns E14. If an admin password is cleared, then the user password is removed too.
IPL T S Series • Communication and Control
4-3
Page 44
Communication and Control, cont’d X3$ = Daylight saving time (DST) is a region-specific 1-hour offset that begins in spring and ends in fall. 0 = off/ignore; 1 = USA on - Starting in 2007, DST begins on the second Sunday of March at 2 AM and ends at 2 AM on the first Sunday of November. For example, time in California is GMT -8:00 from March to November and GMT -7:00 from November to March. However, DST should be turned off in Hawaii, American Samoa, Guam, Puerto Rico, the Virgin Islands, the eastern time zone portion of the state of Indiana, and the state of Arizona (excluding the Navajo Nation). 2 = Europe on - begins on the last Sunday in March, ends on the last Sunday in October. DST should be turned off for Iceland.
X3% = Event number: range = 0–99 (max.) X3^ = Event buffer: 0 = receive; 1 = user (absolute); 2 = user (relative); 3 = NVRAM X3& = Memory location: range = 0–max. BufferSize X3* = Event data size: b = bit; B = byte (8 bit); S = short (16 bit); L = long (32 bit) N
This parameter is case sensitive.
X3( = Event data to write X4! = Reading password: responds as empty if no password is set, and 4 asterisks (****) if password exists.
X4$ = Number of bytes to read: range = 1–127 (max.) X4% = E-mail event number: range = 1–48 (max.) X4^ = E-mail recipient address X4& = Name of e-mail file to be sent. N
E-mail files must have the file extension .eml.
X4( = Default name: a combination of the model-name and the last 3 pairs of the MAC address (e.g., IPL-T-S2-00-02-3D)
X5) = Redirect: 0 = no redirect; 1–n = redirect serial port from the specified port to allow for a transparent pass-through mode
X5@ = Connection’s security level: 0 = not logged in; 1 = user; 2 = administrator X5# = Timeout for data pass-through mode, after which event data can be inserted into the transmit buffer.
X5$ = ASCII digit(s) representing numeric value of data element read from event buffer. (Leading zeros are suppressed.)
X6$ = Time in seconds to keep sending the broadcast message (0–255, default = 10)
X6( = The number of seconds before timeout on IP connections: (min. = 1; max. = 65000;
default= 30 = 300 seconds). If no data is received during the timeout period, the Ethernet connection is closed. Each step = 10 seconds. When connected via RS-232, only the global timeout commands apply. Current returns E13. The response is returned with leading zeros.
X6( is applicable to Ethernet only. N X7) = Number (as optional parameter) inserted into an e-mail message if the .eml file has an embedded ESC CR command with no parameters.
X7! = Hardware (MAC) address: the four most significant hex nibbles converted into a single 16-bit decimal number.
X7@ = Hardware (MAC) address: the eight least significant hex nibbles converted into single 32-bit decimal number.
N
This could be as large as 10 digits.
Copyright information ]© COPYRIGHT 2006, EXTRON ELECTRONICS IPL T Sx, Vx.xx] Mon, 17 Feb 2006 11:27:33]
The copyright message is displayed upon connecting to the IP Link® product via TCP/IP or Telnet. Sx is the model and Vx.xx is the firmware version number. The current date and time is displayed. This is followed by a password prompt.
Password information The “]Password:” prompt requires a password (administrator level or user level)
followed by a carriage return. The prompt is repeated if the correct password is not entered.
4-4
IPL T S Series • Communication and Control
Page 45
If the correct password is entered, the unit responds with “]Login Administrator ]” or “]Login User]”, depending on the password entered. If the passwords are the same for both administrator and user, the unit defaults to administrator privileges.
Error responses When the IPL T S interface receives a valid command, it executes the command and sends a response to the host device. If the unit is unable to execute the command because the command contains invalid parameters, it returns an error response to the host. E12, Invalid port number E13, Invalid parameter E14, Not valid for this configuration E17, System timed out E22, Busy E24, Privilege violation E25, Device not present E26, Maximum number of connections exceeded E27, Invalid event number E28, Bad filename/file not found E31, Attempt to break port pass-through when not set. (A user or software attempted to disable the port redirect feature when it wasn’t already set or active.)
References to errors (at command descriptions on the following pages) 13
= Commands that give an E13 (invalid parameter) error
24
= Commands that give an E24 (privilege violation) error if not administrator level
27
= Commands that may give an E27 (invalid event number) error
28
= Commands that may give an E28 (file not found) error
IPL T S Series • Communication and Control
4-5
Page 46
4-6
(host to unit)
ASCII (Telnet)
E X!*X1&*X2)*X2!RS}X@
W X! %2A X1& %2A X2) %2AX2! RS|X@
(host to unit)
URL Encoded (Web)
response from command]
(unit to host)
Response
IPL T S Series • Communication and Control 10 20 30 40 50 60 70 80 90 100 110 120 ( 2 < F P Z d n x
LF
0
) 3 = G Q [ e o y
1 space * 4 > H R \ f p z
2
! + 5 ? I S ] g q {
CR
3
“ , 6 @ J T ^ h r |
4
# 7 A K U _ i s }
5
$ . 8 B L V ‘ j t ~
6 Esc % / 9 C M W a k u Del
7
& 0 : D N X b l v
8
To find the decimal equivalent of the ASCII character, add the row heading and column heading numbers together.
ASCII to Decimal Conversion Table
N The data string (X@) in this RS command is limited to 200 bytes.
’ 1 ; E O Y c m w
9
LF = line feed CR = carriage return (}) Esc = escape Del = delete response from command ]
N For Web encoding for X@, convert nonalphanumeric characters to hex numbers. A space (hex = 20) is encoded as %20. A plus sign (hex = 2B) is encoded as %2B. E05*4*7*3L RS }<data> Example: W05%2A4%2A7%2A3L RS|<data>
N * X1& * X2) * X2! is optional. X1& is optional only if X2) is also missing. If these three variables are not specified, the default values are used. For this command, X1& and X2) must both a) equal zero or b) be nonzero.
Send data string
Bidirectional serial data port
Command
X! = specific port number (01 – 99) 1 = rear host (Host Control RS-232 port) 2 = front panel Config port 3 = slaved switcher (MLS port) 4 = display port (Projector RS-232/IR) 5 = IR/Serial port A 6 = IR/Serial port B 7 = IR/Serial port C X@ = command data section (< 200 bytes). X1& = time in tens of ms for the IPL T S unit to wait until receipt of the first response character before terminating the current receive operation (default = 10 = 100 ms, max. = 32767). The response includes leading zeros. X2) = time in tens of ms for the IPL T S to wait between characters being received via a serial port before terminating the current receive operation (default = 2 = 20 ms, max. = 32767). The response includes leading zeros. X2! = #L or #D. The letter parameter is case sensitive (requires a capital “D” or capital “L”). The response includes leading zeros. L = Length of the message to be received. D = Delimiter value. # = byte count (for L) or a single ASCII character expressed in decimal form (for D). Byte count # can be from 0 to 32767, default = 0. The ASCII decimal delimiter # value can be from 0 to 00255, default = the byte count. Examples: A 3-byte length = 3L. A delimiter of ASCII 0A = 10D.
Additional description
Communication and Control, cont’d
Page 47
IPL T S Series • Communication and Control
4-7
W X!CP|
E X!CP} E X!*X2(CY} E X!CY} E X!*X3),X3!CF}
E X!*0CD}
Terminate pass-thru mode24
Configure pass-thru mode24
E X!CE} E X!*X5)*X5#*X2!CD}
E X!CF} E X!*X1&*X2)*X2#*X2!CE}
W4%2A9600%2CN%2C8%2C 1CP|
E4*9600,N,8,1CP}
WX!%2AX5)%2AX5#%2AX2! CD| WX!%2A0CD|
WX!CE|
CpnX!•Ccd 00000,00000,00000L]
X1& , X2) , X2# , X2! ] CpnX!•CcdX5),X5#,X2!]
X2! ]
X3), X3!] CpnX!•CceX1& , X2) , X2# ,
WX!%2AX1&%2AX2)%2AX2# %2AX2!CE|
X2%, X2^, X2&, X2( ] CpnX!•CtyX2)] X2(] CpnX!•CflX3), X3!]
Cpn4•Ccp9600,N,8,1]
X2* ]
Cpn X!•CcpX2%, X2^, X2&,
(unit to host)
Response
WX!CF|
WX!%2AX3)%2CX3!CF|
WX!CY|
WX!%2AX2(CY|
WX! %2A X2% %2CX2^ %2CX2& %2CX2*CP |
E X!* X2%, X2^, X2&, X2*CP}
(host to unit)
URL Encoded (Web)
(host to unit)
ASCII (Telnet)
View receive timeout
Configure receive timeout24
Configure flow control View flow control
View mode
Configure mode24
View parameters
Example:
Configure parameters24
Command
Set the time to wait (X1& = waiting time in tens of ms until receipt of the first response character before terminating the receive operation, X2) = waiting time in tens of ms between characters before terminating) and priority status (X2#: 0 = default, use send data string command parameters; 1 = use configure receive timeout command parameters) for port X!. X2! = #L or #D (see previous page). The response includes leading zeros.
Set baud rate (X2%), parity (X2^), data bits (X2&), and stop bits (X2*) for port X!. X2% = 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, or 115200 baud. X2^ = parity (only the first letter is needed): Odd Even None (default) Mark Space. X2& = data bits: 7, 8 (default = 8). X2* = stop bits: 1, 2 (default = 1). Set the projector control port for 9600 baud, no parity, 8 data bits, and 1 stop bit.
Additional description
Page 48
4-8
IPL T S Series • Communication and Control W0TC| W1%2A X6(TC|
W1TC|
E0TC}
E1*X6(TC}
E1TC}
View current connection port timeout Set global IP port timeout
View global IP port timeout
W0%2AX6(TC|
E0*X6(TC}
WX!CD|
E X!CD}
(host to unit)
URL Encoded (Web)
(host to unit)
ASCII (Telnet)
Set current connection port timeout
Ethernet data port
View pass-thru mode24
Command
X6(]
Pti1*X6(]
X6(]
Pti0*X6(]
X5),X5#,X2!]
(unit to host)
Response
The global port timeout is the default timeout period for all Telnet sessions. X6( = IP connection timeout period in seconds. Each step is specified in 10-second intervals (1 - 65000, default = 30 = 300 seconds). If no data is received during the specified period, the Ethernet connection closes. Responses are returned with leading zeros. This timeout period is applicable only when the IPL T S unit is connected via Ethernet, and you must be logged in as an administrator to change this setting.
The current port timeout period applies to the currently open Telnet session only. When you start another Telnet session, it uses the default global port timeout period. X6( = timeout period in seconds. See the description above. This variable is applicable only when the IPL T S unit is connected via Ethernet. If the IPL T S device is connected via RS-232 protocol, only the global timeout commands apply, and any commands involving X6( return the E13 error response.
Additional description
Communication and Control, cont’d
Page 49
IPL T S Series • Communication and Control
4-9
(host to unit)
ASCII (Telnet) (host to unit)
URL Encoded (Web) (unit to host)
Response
Additional description
Example:
Query updated firmware version
Example:
Query factory firmware version
4Q
4Q
3Q
3Q
4Q
4Q
3Q
3Q
Factory-installed firmware is different from the bootstrap firmware, but it is also not userreplaceable. This firmware was installed at the factory; it is the version the controller reverts to after a mode 1 reset (see ch. 2).
1.01*(1.31-IPL Series
1.00(1.18-IPL Series
-Mon, 28 Feb 2005 23:16:55 GMT) ] In this example the current firmware version is 1.01, the IP Link kernel version is 1.31, for the IPL T S device, dated 28 February, 2005.
-Thu, 20 Jan 2005 09:41:47 GMT) ] In this example the factory firmware version is 1.00 and the IP Link kernel version is 1.18 for the IPL T S unit, dated 20 January 2005. Use this command to find out which version X1! (plus Web ver.-desc-UL of the firmware, if any, was uploaded into date/time)] the controller after it left the factory. or Ver04*X1! (plus Web ver.desc-UL date/time)]
X1! (plus Web ver.-desc-UL date/time)] or Ver03*X1! (plus Web ver.desc-UL date/time)]
N Responses to commands differ depending on which, if any, verbose response mode the IPL T S device is in. See the CV command (E X2@ CV}) under IP setup commands later in this table. Query firmware Q or 1Q Q or 1Q Show the IPL T S unit’s firmware version X1! ] version (X1!) to two decimal places. This query or Ver01*X1! ] yields the number of the currently running Example: 1Q 1Q 1.01 version of the user-updatable firmware. or Ver01*1.01 0Q 0Q Sum of responses from 2Q-3QQuery verbose Show the bootstrap, factory-installed, and 4Q] firmware version updated firmware versions. information See 2Q, 3Q, and 4Q below. or Ver00*sum of responss from 2Q-3Q-4Q] Example: 0Q 0Q 1.03-1.00(1.18-IPL Series -Thu, 20 Jan 2005 09:41:47 GMT)-1.01*(1.31-IPL Series -Tue, 14 Jun 2005 00:54:58 GMT)] Query bootstrap 2Q 2Q The bootstrap firmware is not userX1! ] firmware version replaceable, but you may need this or Ver02*X1! ] information during troubleshooting. Example: 2Q 2Q 1.03 ]
N In a query response, an asterisk (*) after the version number indicates the version that is currently used. A question mark (? or ?.??) indicates that the factory default firmware is the only firmware loaded in the IPL T S unit. A carat (^) indicates the version of firmware that should be running, but, since a mode 1 reset was performed, the factory default firmware version is loaded and running instead. An exclamation point (!) indicates that the firmware is corrupted.
Firmware version, part number and information requests
Command
Page 50
4-10
2I
3I
4I
Query model description
Query sys memory usage
Query user memory usage
IPL T S Series • Communication and Control
View e-mail events (mailbox) Send e-mail (file named in mailbox)24
Example:
Configure e-mail events (mailbox)24
E-mail WX4%%2CX4^%2CX4&CR|
4I
4I
3I
2I
1I
N
(host to unit)
URL Encoded (Web)
W X4%CR| WX4%SM|
E X4%CR}
E X4%SM}
Show the IPL T S unit’s part #.
Additional description
IprX4%,X4^,X4& ]
EmlX4% ]
X4^, X4& ]
Ipr 5, jdoe@extron.com, 7.eml ]
X4% = e-mail event number (1 - 64).
For e-mail event 5, send file 7.eml to jdoe@extron.com.
(first line of the file = the subject, the rest = the body of the e-mail).
2.eml, ... 64.eml)
JDoe@extron.com) for the person to whom messages will be sent. This address is limited to 31 characters. X4& = name of e-mail file to be sent (1.eml,
X4% = e-mail event number (1 - 64). X4^ = e-mail recipient’s address (e.g.,
Show the IPL T S unit’s model name. IPL T xxxx ] or Inf01*IPL T xxxx] IPL T S4 with four bi-directional serial ports. Four Bi-Directional Serial Ports [RS232/422/485]] or Inf02*Four Bi-Directional Serial Ports] Show amount of memory used and total # bytes used out of # of available memory for system operations. kbytes] or Inf03*# bytes used out of # of kbytes] # bytes used out of # of Show amount of user memory used and kbytes] total available user memory. or Inf04*# bytes used out of # of kbytes] 217856 Bytes Used out of 7232 KBytes
60-xxx-yy ] or Pno60-xxx-yy ]
(unit to host)
Response
W5 %2C jdoe %40 extron %2E com %2C 7%2E eml CR|
E5, jdoe@extron.com, 7.eml CR}
E X4%, X4^, X4&CR}
4I
1I
Query model name
Example:
N
(host to unit)
ASCII (Telnet)
Query part number
Command
Communication and Control, cont’d