Code examples, Example 1, Code examples -21 – Extron electronic IPL T S Series User Manual

Page 61: Example 1 -21

Advertising
background image

4-21

IPL T S Series • Communication and Control

Code examples

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

Example 1

In 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>
IPLink Product Name: <b>

<!--#echo var="1I"--></b>

<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>
Part Number: <b>

<!--#echo var="W01RS|N"--></b>

<br>
Connection Info: <b>

<!--#echo var="W01RS|I"--></b>

<br>
Firmware Version: <b>

<!--#echo var="W01RS|Q"--></b>

</body>
</html>

"host" SSI
commands

"remote" SSI
commands

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.

Advertising