Extron Electronics MGP Pro Series User Guide User Manual
Page 84
![background image](/manuals/311952/84/background.png)
MGP Pro Series • Remote Configuration and Control
78
Command
ASCII (Telnet)
(Host to Processor)
URL Encoded (Web)
(Host to Processor)
Response
(Processor to Host)
Additional Description
Remap Port Designations (continued)
Set web port
map
24
E
{port#} MH
}
W {port#} MH
|
Pmh {port#}
]
Reset web port
map
24
E
80MH
}
W 80MH
|
Pmh 00080
]
Set the web port to the
standard port number (80).
Disable web port
map
24
E
0MH
}
W 0MH
|
Pmh 00000
]
Read web port
map
24
E
MH
}
W MH
|
{port#}
]
Set Direct Access
port map
24
E
{port#} MD
}
W {port#} MD
|
Pmd {port#}
]
Reset Direct
Access port map
24
E
2001MD
}
W 2001MD
|
Pmd 02001
]
Disable Direct
Access port map
24
E
0MD
}
W 0MD
|
Pmd 00000
]
Read Direct
Access port map
24
E
MD
}
W MD
|
{port#}
]
Listing Connections
List connections
E
CC
}
W CC
|
{Number of connections}
]
File Commands
List files from
current directory
E
DF
}
W DF
|
(See below.)
Retrieve a list of files stored in
the MGP Pro
List files from
current directory
and below
E
LF
}
W LF
|
(See below.)
Each line of the response
lists a different file name and
its corresponding file size.
The last line of the response
indicates how much available
file space remains.
Unit web responses (HTML sample code):
var file = new array ();
file [1] = ‘filename1, date1, filesize1’;
file [2] = ‘filename2, date2, filesize2’;
file [3] = ‘filename3, date3, filesize3’;
...
file [n] = ‘filename n, date n, filesize n’;
file [n+1] = ‘filename n+1, date n+1,
filesize n+1’;
Unit Telnet responses:
filename x+1 • date/time • length
]
filename x+1 • date/time • length
]
filename x+1 • date/time • length
]
filename x+1 • date/time • length
]
...
space_remaining • bytes left
]
]
Stream Files via Port 80
Load file to user
flash memory
Use POST on port 80 followed by the delimited data to be written to the flash file memory.
Retrieve file from
user flash memory
Send a page GET on port 80 followed by: WSF
|
Responds with raw unprocessed data in the file.
Example
http://192.168.254.254/mypage.html?cmd=WSF
|