Extron electronic IPL T SF24 user manual Href=index.html?cmd=W1*1*15*0irPlay/a, 30b Browser view

Page 36

Communication and Control, cont’d

Example 5

This example demonstrates how to send out an IR string from the IPL T SFI244. The line below shows an HTML hyperlink with an Extron IR command encoded into the URL.

<a href=”index.html?cmd=W1*1*15*0ir”>Play</a>

The ? cmd=W1*1*15*0ir is the syntax for the URL encoding of an IR command that will be sent out of IR port #1. The “W” and the “” (pipe symbol) are used as the leading and trailing delimiters for the instruction that tells the box which port number, .eir file or function within the .eir file to send. The command also allows the programmer to define whether the IR should be sent once or continuously until stopped. The IR Learner program determines which IR function, such as play, is assigned to which number. See the IR Learner program for help with this feature.

<html>

<head><title>Example #5</title></head> <h2><b>Example 5</b></h2>

<body>

<p>

This example demonstrates how to send out an IR string from an IR file (1.eir) on IR Port #1 from the IPL T SFI244. This IR driver must be loaded on the IPL T SFI244 in order to send out the string.

</p>

<p>

<a href="index.html?cmd=W1*1*15*0ir">Play</a> </p>

<p>

<a href="index.html?cmd=W1*1*32*0ir">Stop</a> </p>

</body>

</html>

Figure 4-30a — HTML source code showing an IR string from the IPL T SFI244

Figure 4-30b — Browser view

4-36 IPL T SF24 and IPL T SFI244 • Communication and Control

Example 6

The example below (figure 4-31a) shows how you can use JavaScript to parse the response from a CrossPoint 8HVA switcher and produce a formatted Web page.

<html>

<head><title>Example 6</title> <script language="javascript">

xOut1 = "<!--#echo var="W01RSV01%25"-->"; xOut2 = "<!--#echo var="W01RSV02%25"-->"; xOut3 = "<!--#echo var="W01RSV03%25"-->"; xOut4 = "<!--#echo var="W01RSV04%25"-->"; </script>

</head>

<h2 b>HTML Example #6</h2 b> <body>

This example requires an Extron Crosspoint 84HVA connected to IPL T SFI244 serial port #1. <p>

<b>Sample links that can be followed</b> <br>

<a href="http://192.168.254.254/example#6.html?cmd=W01RS5*1!"> http://192.168.254.254/example#6.html?cmd=W01RS5*1!<a><i> -Creates tie from input 5 to output 1</i> <br>

<a href="http://192.168.254.254/example#6.html?cmd=W01RS1*2!"> http://192.168.254.254/example#6.html?cmd=W01RS1*2!<a><i> -Creates tie from input 1 to output 2</i> <br>

<b>Response to last URL encoded command: </b> <!--#echo var="WUB"--> <br><hr>

The following lines demonstrate reading the output status of the Crosspoint. <br>

<p><b>____________Unformatted Response:</b>

<br>

Output 1 Setup: <!--#echo var="W01RSV01%25"--> <br>

Output 2 Setup: <!--#echo var="W01RSV02%25"--> <br>

Output 3 Setup: <!--#echo var="W01RSV03%25"--> <br>

Output 4 Setup: <!--#echo var="W01RSV04%25"--> <br><hr>

Here is an example of formatting the results using Javascript in your HTML. <br>

<p><b>____________Formatted Response:</b><p>

<script> <!--

var x1Split= xOut1.split(" ");

var In1Split= x1Split[1].split("n");

document.write("Output 01 tied to Input " + In1Split[1] + "<br>"); var x2Split= xOut2.split(" ");

var In2Split= x2Split[1].split("n");

document.write("Output 02 tied to Input " + In2Split[1] + "<br>"); var x3Split= xOut3.split(" ");

var In3Split= x3Split[1].split("n");

document.write("Output 03 tied to Input " + In3Split[1] + "<br>"); var x4Split= xOut4.split(" ");

var In4Split= x4Split[1].split("n");

document.write("Output 04 tied to Input " + In4Split[1] + "<br>");

//--> </script> <br> </body> </html>

Figure 4-31a — HTML source code using JavaScript to display CrossPoint 8HVA responses

IPL T SF24 and IPL T SFI244 • Communication and Control 4-37

Image 36
Contents IP Link Tools USAPrecautions Extron’s WarrantyFCC Class a Notice Quick Start Guide IPL T SF24 and SFI244 Under Desk Projector MountTable of Contents Table of Contents, cont’d One IntroductionIPL T SF24 and SFI244 Features IntroductionAbout this Manual About the IPL T SF24 and SFI244 InterfacesInstallation and Operation Easily configured and controlledTwo Introduction, cont’dInstallation and Operation Installation OverviewIPL T SF24 and IPL T SFI244 Installation and Operation Mounting the IPL T InterfaceInstallation and Operation, cont’d Rear Panel Features and CablingPower Furniture or projector mountingEthernet/LAN Serial communicationFront panel indicators OperationIdentification Resetting the unit Connection and Configuration ThreeConnection and Configuration, cont’d Connecting the HardwareSerial connection Ethernet connectionConfiguring the Hardware PC configurationIPL T interface configuration Flex I/O connectionConfiguring the IPL T using direct PC connection Arp -s 10.13.170.15 00-05-A6-00-0A-90Ping Connection and Configuration, cont’d Firmware upgradesFour Communication and ControlCommunication and Control, cont’d Ports OverviewFlex I/O ports Digital inputBidirectional serial control interface ports Digital outputAnalog input Accessing and using the Web server Logon and system status Establishing or changing system or port settingsCommunication with the Interface Web server10 Web server System Settings screen Controlling IR devices or sending IR commands SFI244 onlySetting and changing your passwords Communication and Control, cont’dEditing and adding e-mail alerts Sending an e-mail alert through Telnet Esc 4 SMUpgrading the firmware Managing filesIR Learning SFI244 only Creating a driver with the IR Learner softwareUsing the command/response table Programmer’s Guide for the Telnet and Web browserSymbol definitions Password information Copyright information28 = Commands that may give E28 file not found Error responsesBidirectional Serial Data port Flex I/O Data portIP Setup Commands IR/Serial Data port SFI244 onlyFirmware Version/Part Number/Information File Commands Re-map port designationsWeb Browser Specific MailReset ZAP/Erase Commands Communication and Control, cont’d CustomizationServer side includes ControlQuery string Code examplesExample 26c Browser view 28a Html source code using a query string Href=index.html?cmd=W1*1*15*0irPlay/a 30b Browser viewURL encoding Reserved charactersUnsafe characters Direct port access ports 2001 through Communication and Control, cont’d Device ControlCustom Web pages Telnet PortTroubleshooting Power connectionsPort redirect Data connectionsSpecifications, Part Numbers Accessories AAppendix aSpecifications AppendixBB GlossaryParts Included partsGlossary GlossaryGlossary, cont’d