Command | ASCII (Telnet) | URL Encoded (Web) | Response | |
(Host to Switcher) | (Host to Switcher) | (Switcher to Host) | ||
| ||||
|
|
| ||
File Listing Commands (continued) |
|
| ||
List files from current directory | E LF} | W LF | (See below.) | |
and below |
|
|
|
Telnet text responses:
path/directory/filename x • date/time • length] path/directory/filename x • date/time • length] path/directory/filename x • date/time • length]
...
space_remaining • Bytes Left]
Web responses — HTML sample code:
Var file – new Array ();
File [1] = ‘filename1, date1, filesize1’;
File [2] = ‘filename2, date2, filesize2’;
...
File [n] = ‘filename n, date n, filesize n’;
File [n+1] = ‘space remaining, Bytes left’
NOTE: | The response to this command is the same as for the “List files from current directory” command (DF), except that | ||
| path/directory precedes filenames for files from subdirectories below the current directory. |
| |
Stream Files via Port 80 |
|
| |
Load file to user flash memory24 28 | Use a POST on port 80 followed by the delimited data to be written to the flash file | ||
|
| memory. |
|
Retrieve files from user flash | Send a page GET on port 80 followed by WSF | Raw unprocessed data | |
memory24 28 |
|
| in file |
Example: | http://192.168.254.254/mypage.html?cmd=WSF |
| |
Stream Files via Telnet |
|
|
Load file to user flash memory24 28
Retrieve file from user flash memory24 28
E + UF filesize, filename}
Raw unprocessed data in file up to file size
Upl]
E filename SF} 1B filename SF 0D Four bytes of file size + raw unprocessed data in file
Reset (Zap) and Erase Commands
Erase the user flash memory24 (files only)
Reset all device settings to factory default24
Absolute system reset24
E ZFFF} | W ZFFF | Zpf] |
E ZXXX} | W ZXXX | Zpx] |
E ZQQQ} | W ZQQQ | Zpq] |
IPL T PCS4 • SIS Programming and Control 53