FIRMWARE

Description

> Upload the device configuration file to the device's flash. Then, the device will be rebooted.

> There are two formats of HTTP form with this URL command. One is the general format applied to most of devices. The other one is only used in the Multi-Channel Encoders. These two formats are described below.

> 1.General Format

> The format of this URL http://172.16.3.14/cgi-bin/update?USER=Admin&PWD=123456&FIRMWARE is listed below.

> Stage 1: Send this URL to the device for configuration file upload

> > ASCII FORMAT

> > GET /cgi-bin/update?USER=admin&PWD=123456&FIRMWARE HTTP/1.1
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
> > Accept-Language: zh-tw
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
> > Host: 172.16.3.14
> > Connection: Keep-Alive

> > Hex Dump Format

> Stage 2 : Device reply the URL

> > ASCII FORMAT

> > HTTP/1.0 200 OK
> > Content-type: text/html
> > <html><head><title>UPLOAD FILES</title></head>
> > <meta http-equiv="PRAGMA" content="NO-CACHE"><body>
> > <form name="UPLOAD_FORM" method="POST" enctype="multipart/form-data" action="update?FIRMWARE_SAVE">
> > FIRMWARE : <input type="FILE" name="URL_FIRMWARE_IMAGE" value="" size="40">
> > <br>
> > MD5 : <input type="FILE" name="URL_FIRMWARE_MD5" value="" size="40">
> > <br>
> > <input type="submit" value="Apply" name="URL_FIRMWARE_SUBMIT">
> > <input type="reset" value="Reset" name="URL_FIRMWARE_RESET">
> > <br>
> > </form></body></html>

> > Hex Dump Format

> Stage 3: Upload the image file to device and get the return code

> > ASCII FORMAT

> > POST /cgi-bin/update?FIRMWARE_SAVE HTTP/1.1
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
> > Referer: http://172.16.3.14/cgi-bin/update?USER=admin&PWD=123456&FIRMWARE
> > Accept-Language: zh-tw
> > Content-Type: multipart/form-data; boundary=---------------------------7d834b76e0708
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
> > Host: 172.16.3.14
> > Content-Length: 2503864
> > Connection: Keep-Alive
> > Cache-Control: no-cache
> > -----------------------------7d834b76e0708
> > Content-Disposition: form-data; name="URL_FIRMWARE_IMAGE"; filename="C:\Documents and Settings\MingYoung.You\My Documents\LinuxShare\AEC1100\release\220-V3.09.01\A1D-220-V3.09.01-AC.upg"
> > Content-Type: application/x-gzip-compressed

> > ......................................

> > -----------------------------7d834b76e0708
> > Content-Disposition: form-data; name="URL_FIRMWARE_MD5"; filename="C:\Documents and Settings\MingYoung.You\My Documents\LinuxShare\AEC1100\release\220-V3.09.01\A1D-220-V3.09.01-AC.md5"
> > Content-Type: application/octet-stream
> > IMG_MD5='15ff269d2b8735e31f62b4bdbea097ba'
> > -----------------------------7d834b76e0708
> > Content-Disposition: form-data; name="URL_FIRMWARE_SUBMIT"
> > Apply
> > -----------------------------7d834b76e0708--

> > Hex Dump Format

> Stage 4: device reply this URL

> > ASCII FORMAT

> > HTTP/1.0 200 OK
> > Content-type: text/plain
> > Content-Length: 3
> > OK

> > Hex Dump Format

> 2.Form Format used in the Multi-Channel Encoder

> If the CHANNEL=n was not set with this URL to the Multi-Channel device, the router firmware upgrade will be performed. Otherwise, the channel n video server's firmware upgrade will be performed. To upgrade all video servers' firmware, the FIRMWARE_ALL URL is used,

> The format of this URL http://172.16.3.21/cgi-bin/update?USER=Admin&PWD=123456&FIRMWARE is listed below.

> Stage 1: Send this URL to the device for image and MD5 file upload

> > ASCII FORMAT

> > GET /cgi-bin/update?USER=admin&PWD=123456&FIRMWARE HTTP/1.1
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
> > Accept-Language: zh-tw
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
> > Host: 172.16.3.21
> > Connection: Keep-Alive

> > Hex Dump Format

> Stage 2 : Device reply the URL

> > ASCII FORMAT

> > HTTP/1.0 200 OK
> > Content-type: text/html
> > <html><head><title>UPLOAD FILES</title></head>
> > <meta http-equiv="PRAGMA" content="NO-CACHE">
> > <body>
> > <form name="UPLOAD_FORM" method="POST" enctype="multipart/form-data" action="update?FwSave00_1">
> > Firmware : <input type="FILE" name="URL_FIRMWARE_IMAGE" size="40">
> > <br>
> > MD5 : <input type="FILE" name="URL_FIRMWARE_MD5" size="40">
> > <br>
> > <input type="submit" value="Apply" name="URL_FIRMWARE_SUBMIT">
> > <input type="reset" value="Reset" name="URL_FIRMWARE_RESET">
> > <br>
> > </form>
> > </body></html>

> > Note: The action string update?FwSave00_1 indicates this is the FIRMWARE URL for router. The rule of this mapping is

> > FwSavenn_m
> > where
> > nn : the indication of the router, a video server or all video servers.
> > 00 : router,
> > <= : Maximum Channel : the channel nn video server,
> > = : Maximum Channel + 1 : All video servers.
> > m : 1 : the firmware version and firmware type are checked before firmware upgrade.
> > 0 : not check is applied
> > In this URL, m is fixed to 1

> > Hex Dump Format

> Stage 3: Upload the image file to device and get the return code

> > ASCII FORMAT

> > POST /cgi-bin/update?FwSave00_1 HTTP/1.1
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
> > Referer: http://172.16.3.21/cgi-bin/update?USER=admin&PWD=123456&FIRMWARE
> > Accept-Language: zh-tw
> > Content-Type: multipart/form-data; boundary=---------------------------7d8da06e0708
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
> > Host: 172.16.3.21
> > Content-Length: 2126235
> > Connection: Keep-Alive
> > Cache-Control: no-cache
> > -----------------------------7d8da06e0708
> > Content-Disposition: form-data; name="URL_FIRMWARE_IMAGE"; filename="C:\Documents and Settings\MingYoung.You\My Documents\LinuxShare\SED2600\A8D-R2N-V2.04.00\A8D-R2N-V2.04.00-AC.upg"
> > Content-Type: application/x-gzip-compressed

> > ......................................

> > -----------------------------7d8da06e0708
> > Content-Disposition: form-data; name="URL_FIRMWARE_MD5"; filename="C:\Documents and Settings\MingYoung.You\My Documents\LinuxShare\SED2600\A8D-R2N-V2.04.00\A8D-R2N-V2.04.00-AC.md5"
> > Content-Type: application/octet-stream
> > IMG_MD5='3fd5ef17e6233345d9b653665477efa7'
> > -----------------------------7d8da06e0708
> > Content-Disposition: form-data; name="URL_FIRMWARE_SUBMIT"
> > Apply
> > -----------------------------7d8da06e0708--

> > Hex Dump Format

> Stage 4: device reply this URL

> > ASCII FORMAT

> > HTTP/1.0 200 OK
> > Content-type: text/plain
> > Content-Length: 3
> > OK

> > Hex Dump Format

Input Argument

> None

Attribute

- Write Only

Return of Message

- Write Operation

> OK (always)

Applicability

- WPL Platform : All Encoder Devices
- EPL Platform : All Encoder Devices
- PlatfotmT : All Encoder Devices
- Multi-Channel Encoder : Router Only

Status

> Valid

See Also

> CONFIG_GET, CONFIG_SET, FIRMWARE_ALL, PROFILE, PROFILE_PACK

Example

- Write Operation

> http://ip:port/cgi-bin/update?USER=Admin&PWD=123456&FIRMWARE
> or
> http://ip:port/cgi-bin/update?USER=Admin&PWD=123456&CHANNEL=n&FIRMWARE (for CHANNEL=n video server in the Multi-Channel Encoder)

Back to

> HOME, UPDATE CGI