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
Example 6
The example below (figure
<html>
<head><title>Example 6</title> <script language="javascript">
xOut1 =
</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>
<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>
<b>Response to last URL encoded command: </b>
The following lines demonstrate reading the output status of the Crosspoint. <br>
<p><b>____________Unformatted Response:</b>
<br>
Output 1 Setup:
Output 2 Setup:
Output 3 Setup:
Output 4 Setup:
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>");
//
Figure 4-31a — HTML source code using JavaScript to display CrossPoint 8HVA responses
IPL T SF24 and IPL T SFI244 • Communication and Control