Extron electronic SFI244 Series, IPL T SF24 user manual 28a Html source code using a query string

Page 35

Communication and Control, cont’d

Example 3

The next example shows how the flex I/O outputs can be controlled using a query string and the SIS commands.

<html>

<head><title>Example 3</title></head> <h2><b>HTML Example 3</b></h2> <body>

The following lines demonstrate how to send commands to an IP Link Product: <p>

<a href="index.html?cmd=1*1]">Set Digital Output On</a>

<br>

<a href="index.html?cmd=1*0]">Set Digital Output Off</a> </p>

</body>

</html>

Figure 4-28a — HTML source code using a query string

Figure 4-28b — Browser view

Example 4

The flex I/O can also be configured as an input. In the next example, two inputs are connected to a System 8 Plus switcher. Using JavaScript, the status of the digital inputs can be checked and the appropriate message displayed for the user.

<html>

<head><title>Example 4</title></head> <h2><b>HTML Example #4</b></h2> <body>

<p>

<script>

var ioState1 = "<!--#echo var="1]"-->" var ioState2 = "<!--#echo var="2]"-->" if ((ioState1 == 1) && (ioState2 == 0)) { document.write('Input #1 Selected')

}

else if ((ioState1 == 0) && (ioState2 == 1)) { document.write('Input #2 Selected')

}

else {

document.write('No Input Selected')

}

</script>

</p>

<p>

<a href="index.html?cmd=3*25*3]">Select Input #1</a> <br>

<a href="index.html?cmd=4*25*3]">Select Input #2</a> </p>

</body>

</html>

Figure 4-29a — HTML source code showing server side includes

Using the SSI to assign the state of input 1 and 2 allows the JavaScript code to determine which switcher input is selected. This example also demonstrates using a URL query string in conjunction with the pulse I/O command to allow the user to switch the System 8 with a 250 ms closer.

Figure 4-29b — Browser view

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

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

Image 35
Contents USA IP Link ToolsFCC Class a Notice PrecautionsExtron’s Warranty Under Desk Projector Mount Quick Start Guide IPL T SF24 and SFI244Table of Contents Table of Contents, cont’d IPL T SF24 and SFI244 OneIntroduction About the IPL T SF24 and SFI244 Interfaces FeaturesIntroduction About this ManualIntroduction, cont’d Installation and OperationEasily configured and controlled TwoMounting the IPL T Interface Installation and OperationInstallation Overview IPL T SF24 and IPL T SFI244 Installation and OperationFurniture or projector mounting Installation and Operation, cont’dRear Panel Features and Cabling PowerSerial communication Ethernet/LANIdentification Front panel indicatorsOperation Resetting the unit Three Connection and ConfigurationEthernet connection Connection and Configuration, cont’dConnecting the Hardware Serial connectionFlex I/O connection Configuring the HardwarePC configuration IPL T interface configurationPing Configuring the IPL T using direct PC connectionArp -s 10.13.170.15 00-05-A6-00-0A-90 Communication and Control Connection and Configuration, cont’dFirmware upgrades FourDigital input Communication and Control, cont’dPorts Overview Flex I/O portsAnalog input Bidirectional serial control interface portsDigital output Web server Accessing and using the Web server Logon and system statusEstablishing or changing system or port settings Communication with the InterfaceControlling IR devices or sending IR commands SFI244 only 10 Web server System Settings screenEditing and adding e-mail alerts Setting and changing your passwordsCommunication and Control, cont’d Managing files Sending an e-mail alert through TelnetEsc 4 SM Upgrading the firmwareCreating a driver with the IR Learner software IR Learning SFI244 onlyProgrammer’s Guide for the Telnet and Web browser Using the command/response tableSymbol definitions Copyright information Password informationFlex I/O Data port 28 = Commands that may give E28 file not foundError responses Bidirectional Serial Data portFirmware Version/Part Number/Information IP Setup CommandsIR/Serial Data port SFI244 only Mail File CommandsRe-map port designations Web Browser SpecificControl Reset ZAP/Erase CommandsCommunication and Control, cont’d Customization Server side includesExample Query stringCode examples 26c Browser view 28a Html source code using a query string 30b Browser view Href=index.html?cmd=W1*1*15*0irPlay/aUnsafe characters URL encodingReserved characters Telnet Port Direct port access ports 2001 throughCommunication and Control, cont’d Device Control Custom Web pagesData connections TroubleshootingPower connections Port redirectAAppendix a Specifications, Part Numbers AccessoriesSpecifications Included parts AppendixBBGlossary PartsGlossary GlossaryGlossary, cont’d