Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 8

IPL T S Series IP Link Ethernet Control Interfaces User's Manual, pages 61 to 70

Pages 61 to 70 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 61

Code examples This section shows practical uses for both SSIs and query strings.

Example 1 In the figure below, both host SSI and remote SSI commands are used within the same Web page. You will notice six SSIs: three host commands and three remote commands. <html> <head><title>Example 1</title></head> <h2 b>HTML Example #1</h2 b> <body> The following lines demonstrate how to read status from the IPLink Product: <p> "host" SSI IPLink Product Name: <b><!--#echo var="1I"--></b> commands <br> IPLink Product Description: <b><!--#echo var="2I"--></b> <br> IPLink Product Part Number: <b><!--#echo var="N"--></b> <br><hr> <p> This example requires an Extron Crosspoint 84HVA connected to IPL T S2 serial port #1. <p> "remote" SSI Part Number: <b><!--#echo var="W01RS|N"--></b> commands <br> Connection Info: <b><!--#echo var="W01RS|I"--></b> <br> Firmware Version: <b><!--#echo var="W01RS|Q"--></b> </body> </html>

Figure 4-5, Web page HTML source code document showing Server Side Includes The host SSI commands in the figure above request the product name, product description, and product part number of an IPL T S interface. The remote SSI commands request the part number, connection information and firmware version of an attached serial device. <html> <head><title>Example 1</title></head> <h2 b>HTML Example #1</h2 b> <body> The following lines demonstrate how to read status from the IPLink Product: <p> IPLink Product Name: <b>IPL T S2</b> <br> IPLink Product Description: <b>Two Bi-Directional Serial Ports [RS232/422/485]</b> <br> IPLink Product Part Number: <b>60-544-81</b> <br><hr> <p> This example requires an Extron Crosspoint 84HVA connected to IPL T S2 serial port #1. <p> Part Number: <b>N60-337-01%0D%0A</b> <br> Connection Info: <b>V08X04 A08X04 Exe0%0D%0A</b> <br> Firmware Version: <b>Ver2.02%0D%0A</b> </body> </html>

Figure 4-6a, Resulting HTML source code served by an IP Link Web server In figure 4-6a, the commands executed by the IPL T S2 in response to SSI references have been replied to, and were implemented when the Web page was served to the browser.

IPL T S Series • Communication and Control

4-21

Page 62

Communication and Control, cont’d

Figure 4-6b, Browser view of previous HTML source code

Example 2 The example below shows how a simple hyperlink and a remote query string can be used to build a Web page that can control a device. <html> <head><title>Example 2</title></head> <h2><b>HTML Example 2</b></h2> <body> The following lines demonstrate how to send commands to RS-232 Comm Port #1 of an IPLink Product: <p> <a href="index.html?cmd=W01RS|1!">Select Input #1</a> <br> <a href="index.html?cmd=W01RS|2!">Select Input #2</a> </p> </body> </html>

Figure 4-7a, HTML source code showing multiple hyperlinks using query strings

4-22

IPL T S Series • Communication and Control

Page 63

Figure 4-7b, Browser view of previous HTML source code N Before attempting to develop new Web pages, the user should have a working knowledge of JavaScript, HTML, and SSI.

URL encoding URL encoding is the method of using ASCII hexadecimal characters to display specific characters in a URL. URL encoding is used for several reasons. On some operating systems, certain characters are unsafe or not available, and others are reserved by the HTML or URL specification. URL encoding is used to ensure compatibility and functionality with most Internet browsers. As a general rule, use the URL hexadecimal encoding method shown on the following page when these characters appear in your URLs. The following types of characters do not require encoding in a URL. Alphanumerics

0-9 a-z A-Z

Special characters

$__.+!*(),

Reserved characters

;/?:@=& When used for their reserved purposes, these characters do not require encoding within a URL.

Reserved characters Reserved characters should not be encoded when they appear in their conventional meaning in a URL. For example, do not encode the slash (/) when using it as part of the URL syntax. Only encode unsafe characters (defined below) in your URLs. The following table lists reserved characters.

IPL T S Series • Communication and Control

4-23

Page 64

Communication and Control, cont’d Characters

Hex

Dec

$

Dollar

24

36

&

Ampersand

26

38

+

Plus

2B

43

,

Comma

2C

44

/

Forward slash / virgule

2F

47

:

Colon

3A

58

;

Semi-colon

3B

59

=

Equal

3D

61

?

Question mark

3F

63

@

“At” symbol

40

64

Unsafe characters URLs use some characters for “special use” in defining their syntax and should be encoded. For various reasons, these characters present the possibility of being misunderstood within a URL, and are therefore considered “unsafe”. The table below lists unsafe characters. Hex

Dec

Space

20

32

"" < >

Quotation marks “Less than” symbol “Greater than” symbol

22 3C 3E

34 60 62

#

Pound

23

35

%

Percent

25

37

7B 7D 7C 5C 5E 7E 5B 5D 60

123 125 124 92 94 126 91 93 96

Characters

Miscellaneous characters { } | \ ^ ~ [ ] `

Left curly brace Right curly brace Vertical bar / pipe Backslash Caret Tilde Left square bracket Right square bracket Grave accent

Advanced Serial Port Control

If serial setup configurations are required, the following options provide advanced methods for communicating serially with the interface: serial pass-through (or redirect mode), direct port access, and serial bridging.

Serial pass-through (redirect mode) Serial pass-through allows serial commands from a controller to “pass through” an IPL T S interface on route to an A/V device, as shown in the following figure. Any serial port on an IPL T S interface can be configured as a pass-through connection to another serial port on the same device.

4-24

IPL T S Series • Communication and Control

Page 65

Extron IPL T S2 M

CO

M

CO

30

# 09

05

12

UID

LA

2

1

2

Ethernet Control Interface

M2 CO M1 CO

N

TX TX

RX

RX

WER PO

V 12 MAX .5A

RS-232 ptop

La DV

Y PLA DIS ER POW

VC

D

R

C 206 ler ML trol nk

UME

TCP/IP Network

VOL

Med

Con iaLi

/

MAX

RS-232

MIN

Ext ron

Extron MediaLink or Other Controller

Ethernet Remote User Control & Administrator Monitoring

Projector

Figure 4-8, Pass-through mode In the figure above, a MediaLink® controller connected to the IPL T S2’s serial port 1 (COM1) is controlling a projector connected to serial port 2 (COM2). Serial pass-through is enabled or disabled through the Com Configuration tab of a device within the Extron Global Configurator software. Advanced users can use the pass-through SIS command as well. See the “Command/response table for Simple Instruction Set (SIS) commands”, earlier in this chapter, for detailed command descriptions.

Direct port access (ports 2001 through 2006) Direct port access allows a direct, one-to-one connection to any of the serial ports using a TCP/IP connection. When a TCP session is initiated to port 2001 (COM1) through port 2006 (COM6), all data sent and received passes directly to and from that port without any processing. Set serial port parameters (baud rate, parity, and so on.) within the IPL T S Series unit prior to using direct access. (See “Port Settings” in chapter 3). N The reserved TCP port numbers (2001-2006) are default assignments. To initiate direct port access using DataViewer: 1.

If necessary, set serial port parameters (baud rate, parity, and so on.) within the IPL T S unit. (See “Port Settings” in chapter 3.)

2.

Launch the DataViewer software program.

3.

Click the TCP/IP tab on the Communication Setup dialog box.

4.

Complete the fields with the appropriate IP address and the TCP/IP port number (2001-2006), as shown below.

N A password is not required for direct port access.

IPL T S Series • Communication and Control

4-25

Page 66

Communication and Control, cont’d

Figure 4-9, DataViewer Communication Setup dialog box 5.

Click OK. The DataViewer commands window opens.

6.

Send serial commands directly through the selected COM port to the attached A/V device.

7.

To end the direct access session, close DataViewer.

N You can force the direct access session closed by logging on as administrator and entering "EscX!*0CD}", where X! is the selected COM port.

Serial Bridging Serial bridging mode allows you to pass serial data between two COM ports through an Ethernet port, creating a virtual serial connection over a LAN. To use serial bridging, two IPL T S devices (one local and one remote) must be enabled to communicate with each other, providing PC or controller access to a remote A/V device.

Hardware connection To set up the hardware for serial bridging:

4-26

1.

Verify that the serial port parameters of the two devices match, as explained under “Direct port access (ports 2001 through 2006)”.

2.

For IPL T S unit 1 (the remote device), connect a serial cable to an A/V device (for example, a plasma display or projector).

3.

On the same IPL T S, connect the device to your LAN.

IPL T S Series • Communication and Control

Page 67

Box 1 M

3

CO

M

1

CO

Extron IPL T S4

12

30

UID#

09

2

05

M

M

2

CO

2

CO

N

LA WER PO

V X 12 MA .5A

Ethernet Control RS-232 Interface

Ethernet

TCP/IP Network

Plasma Display

Box 2 N

LA

Extron IPL T S1

M

1

CO V X 12 MA .5A

Ethernet Control RS-232 Interface PC running serial control software or a serial controller.

Figure 4-10, Setup for serial bridging 4.

For IPL T S unit 2, make a serial connection to the PC or controller that will control the remote A/V device.

5.

On the same device, follow the step 2 instructions.

You are now ready to configure IPL T S unit 2 for serial bridging mode.

Serial bridge configuration To allow both IPL T S units to communicate together, you must configure unit 2 to communicate with unit 1. N If a driver was previously loaded onto your IPL T S device COM port(s) using Global Configurator, serial bridging disables it. To configure unit 2 to communicate with unit 1: 1.

Enter the IP address of unit 2 in the Internet browser’s Address field at the top of the screen, and press the Enter key. The System Status page opens, showing the current IP and port settings of the unit.

2.

Access the Web server port setting screen by clicking the Configuration tab, then the Port Settings link on the left side of the window. The Port Settings page appears, as shown in the figure below.

3.

Choose the serial port that you wish to communicate through.

4.

Under Serial Bridging, choose the On radio button to activate serial bridging mode.

IPL T S Series • Communication and Control

4-27

Page 68

Communication and Control, cont’d

Figure 4-11, The Port Settings page on unit 2 5.

In the Remote IP Address field, enter the direct access IP address of unit 1.

6.

In the Remote TCP Port field, enter the port number (2001-2006) that is serially attached to unit 1.

7.

Click the Submit button.

The attached A/V device should now accept all serial commands from your PC or controller.

Troubleshooting

Turn on the output device(s) (plasma screens, monitors, projectors), the IPL T S interface, and the control devices (PC, laptop, and so on). If the output A/V device cannot be remotely controlled, check the following:

Power connections 1.

Ensure that all devices are plugged in.

2.

Make sure that each device is receiving power. The interface’s front panel Power LED lights if the device is receiving power.

Data connections 1.

4-28

Check the cabling connections and make adjustments as needed. The Link LEDs on the IPL T S control interface and on the computer should be solid green if a network connection is detected. If these LEDs are not lit, either the cable is faulty or not plugged in, or the wrong type of cable is being used (see chapter 2, “Installation and Operation”).

IPL T S Series • Communication and Control

Page 69

2.

3.

Try to “ping” the unit by entering “ping 192.168.254.254” at the DOS command prompt, or use the IP or Web address provided to you by your system administrator. If you get no response: a.

Make sure your unit is using the appropriate subnet mask (check with your system administrator).

b.

Make sure your PC does not have a software firewall program that might block the IP address of the unit.

If contact is established with the unit, but the unit’s Web pages cannot be accessed by your Web browser, verify (in the Options or Preferences menu) that your Web browser is configured for direct network connection and is not set up to use a proxy server.

If you are still experiencing problems, call the Extron S3 Sales & Technical Support Hotline.

IPL T S Series • Communication and Control

4-29

Page 70

Communication and Control, cont’d

4-30

IPL T S Series • Communication and Control