Extron electronics IPL T SF24 Series User Manual page 36

Ip link tools
Hide thumbs Also See for IPL T SF24 Series:
Table of Contents

Advertisement

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
IPL T SF24 and IPL T SFI244 • Communication and Control
4-36
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="W01RS|V01%25"-->";
xOut2 = "<!--#echo var="W01RS|V02%25"-->";
xOut3 = "<!--#echo var="W01RS|V03%25"-->";
xOut4 = "<!--#echo var="W01RS|V04%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=W01RS|5*1!">
http://192.168.254.254/example#6.html?cmd=W01RS|5*1!<a><i> -Creates tie from input 5 to output 1</i>
<br>
<a href="http://192.168.254.254/example#6.html?cmd=W01RS|1*2!">
http://192.168.254.254/example#6.html?cmd=W01RS|1*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="W01RS|V01%25"-->
<br>
Output 2 Setup: <!--#echo var="W01RS|V02%25"-->
<br>
Output 3 Setup: <!--#echo var="W01RS|V03%25"-->
<br>
Output 4 Setup: <!--#echo var="W01RS|V04%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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sfi244 series

Table of Contents