Serial Communication, cont’d
DVS 304 • Serial Communication
3-22
Command/response table for IP control port commands (continued
Command ASCII (Telnet
(host to processor
URL Encoded (Web
(host to processor
Response
(processor to host
Additional description
Listing connections
Get connection listing
E CC } WCC
|
(See below.)
Remote client IP address: port number, time/date when connection was made, total connection time
]
Remote client IP address: port number, time/date when connection was made, total connection time ]
Remote client IP address: port number, time/date when connection was made, total connection time ]
...
Totalclients•connectionsavailable
]]
Unit Web responses: HTML Sample Code
var connections = new Array ();
connections [1] = ‘Client IP1, timedate 1, uptime 1’;
connections [2] = ‘Client IP2, timedate 2, uptime 2’;
connections [3] = ‘Client IP3, timedate 3, uptime 3’;
...
connections [n] = ‘Client IPn, timedate n, uptime n’;
connections [n + 1] = ‘total clients, connections available’;
File commands
Read Direct Access port map
E MD } WMD
|
{port#} ]
Get listing
E DF } WDF
|
(See below.) Retrieve a list of files stored in the DVS 304.
Each line of the response lists a different file
name and its corresponding file size. The
Unit Telnet text responses: Unit Web responses:
lenamex•date/time*length
] var file - new Array ():
lenamex•date/time*length
] file [1] = ‘filename 1, date 1, filesize 1’;
lenamex•date/time*length
] file [2] = ‘filename 2, date 2, filesize 2’;
lenamex•date/time*length
] file [3] = ‘filename 3, date 3, filesize 3’;
... ...
space_remaining•Bytesleft]] file [n] = ‘filename n, date n, filesize n’;
file [n + 1] = ‘space remaining, Bytes left’