Query string, Query string -20, Communication and control, cont’d – Extron electronic IPL T S Series User Manual

Page 60: Query string, Ipl t s series • communication and control 4-20, Server side include using a remote sis command, Url with a query string using a host sis command

Advertising
background image

Communication and Control, cont’d

IPL T S Series • Communication and Control

4-20

<!--#echo var="

"-->

W

Delimiter

Delimiter

SIS Command

Server Side Include Using a Remote SIS command

*Type with no spaces.

Port

Number

1 *

*

*

Time to

wait for

first character

of response

50

Time

between

characters

in response

3

Command

RS

Length or

Delimiter

parameter

3L

Hello

Data to be

passed to

external device

via a serial port

SIS Command

Elements

Figure 4-2 — Example of an SSI “remote” command

In the example above, a “remote” serial command sends the word “Hello” and

waits up to 50 ms for a response (until three characters are received). For more

information on this command, refer to the “Command/response table for Simple

Instruction Set (SIS) commands”, earlier in this chapter.

Query string

A query string is the portion of a URL that appears after the question mark. The

query string contains parameters or instructions for the Web server to execute.
The basic format for a query string within a link is:
<a href=”index.html?cmd=x”>Input #1</a>

Where x is the SIS command to be executed.
When a link is accessed on a Web page, the URL is passed to the Web server to tell it

which Web page to return to the browser. The portion of the URL after the question

mark is the query string, which contains the SIS command that the IPL T S interface

removes and executes.
As with SSI formatted commands, query strings can use any valid SIS command—

either “host” or “remote”.
The query string in the figure below turns off DHCP on the IP Link device.

<a href="index.html

?

Starts

Query String

SIS Command

URL with a Query String using a Host SIS command

*Type with no spaces.

Tells Web server

an SIS command

follows

HTML code

for a link

cmd=

SIS command

to be processed

by the IP Link

W0DH|

Closes

Link

</a>

HTML code

for a link

">

Linked Text

DHCP off

Figure 4-3 — Example of a host query string command

<a href="index.html

?

Starts

Query String

SIS Command

URL with a Query String using a Remote SIS command

*Type with no spaces.

Tells Web
server an

SIS command

follows

HTML code

for a link

cmd=

Closes

Link

</a>

HTML

code

for a link

">

Linked

Text

Input #1

W

Delimiter

Port

Number

2

Command

RS

Delimiter

1!

Data to

be passed to

external device

via a serial port

Figure 4-4 — Example of a remote query string command

In the figure above, the data string that follows the pipe (|) symbol is sent to the

attached controlled device on serial port #2. This string instructs an attached

Extron switcher to change to input #1.

Advertising