beautypg.com

Extron Electronics DVS 304 Series User Guide User Manual

Page 57

background image

Command

ASCII (T

elnet)

(host to pr

ocessor)

URL Encoded (W

eb)

(host to pr

ocessor)

Response

(pr

ocessor to host)

Additional description

File commands

Get file listing

E

DF

}

WDF

|

(See below

.)

Retrieve a list of files stor

ed in the DVS 304.

Each line of the r

esponse lists a dif

fer

ent file

name and its corr

esponding file size. The last

line of the r

esponse indicates how much

available file space r

emains.

Unit T

elnet text r

esponses:

Unit W

eb r

esponses:

filename

x • date/time * length

]

var file - new Array ():

filename

x • date/time * length

]

file [1] = ‘

filename

1, date 1, filesize 1’;

filename

x • date/time * length

]

file [2] = ‘

filename

2, date 2, filesize 2’;

filename

x • date/time * length

]

file [3] = ‘

filename

3, date 3, filesize 3’;

...

...

space_r

emaining • Bytes left

]]

file [n] = ‘

filename

n, date n,

filesize

n’;

file [n + 1] = ‘space r

emaining, Bytes left’

Str

eam files via port 80

Load file to user flash memory

Use a POST command on port 80 followed by the delimited data to be written to the flash file memory

.

Retrieve file fr

om user flash

memory

Send a page GET command on port 80 followed by: WSF

|

{Responds with raw unpr

ocessed data in file.}

Example:

http://192.168.254.254/mypage.html?cmd=WSF

|

Str

eam files via T

elnet or RS-232

Load file to user flash

memory

E

+ UF

filesize

,

filenam

e

}

{Raw unpr

ocessed data

in file up to

filesize

}

Upl

]

Retrieve file fr

om user flash

memory

E

filename

SF

}

1B

filename

52 46 0D

{Responds with raw unpr

ocessed data in file + 1 byte checksum.}

Dir

ectory commands

Change/cr

eate dir

ectory

E

{path}

/{director

y}

/CJ

}

W

{path}

/{director

y}

/CJ

|

Dir•

{path}

/{director

y}

/

]

NOTE:

A dir

ectory does not actually exist until a file has been copied into the path.

Move back to r

oot dir

ectory

E

/ CJ

}

W%2FCJ

|

Dir•/

]

Move up one dir

ectory

E

..CJ

}

W%2E%2ECJ

|

Dir•

{path}

/

{director

y}

/

]

V

iew curr

ent dir

ectory

E

CJ

}

WCJ

|

{path}

/{director

y}

/

]

DVS 304 Series • SIS Communication and Control

52