Upload the camera profile image file to the device's flash. This is different to the PROFILE URL command which it will not be used and replaced by this URL.
The profile used in this command is the profile pack files (All camera profiles were packed together). The device will unpack the uploaded file and pick up the correct profile to upgrade.
No matter the command was executed successfully, the device will be rebooted and the runtime configuration will not be saved.The format of this URL http://172.16.3.51/cgi-bin/update?USER=admin&PWD=123456&PROFILE_PACK is listed below.
Stage 1: Send this URL to the device for camera profile file upload
GET /cgi-bin/update?USER=admin&PWD=123456&PROFILE_PACK 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
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Host: 172.16.3.51
Connection: Keep-AliveStage 2 : Device reply the URL
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?PROFILE_PACK_SAVE">
PROFILE_PACK : <input type="FILE" name="URL_PROFILE_IMAGE" 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>Stage 3: Upload the image file to device and get the return code>
POST /cgi-bin/update?PROFILE_PACK_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.51/cgi-bin/update?USER=admin&PWD=123456&PROFILE_PACK
Accept-Language: zh-tw
Content-Type: multipart/form-data; boundary=---------------------------7d82afb9009e
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Host: 172.16.3.51
Content-Length: 20157
Connection: Keep-Alive
Cache-Control: no-cache
-----------------------------7d82afb9009e
Content-Disposition: form-data; name="URL_PROFILE_IMAGE"; filename="camera_profile_20080901.bin"
Content-Type: application/octet-stream
9d0a8c340cb655e3282548dc3bd066f8....$..H.....PT.......A.$.P..n.....$.$..ir.h..$ 9
"I....%.B#Q.4H..Z$.&.:.........Z.y.|u..[uo. .9...{....V.....#@..P........_.A ....@`0......c.|...O......................................
-----------------------------7d82afb9009e
Content-Disposition: form-data; name="URL_FIRMWARE_SUBMIT"
Apply
-----------------------------7d82afb9009e--Stage 4: device reply this URL
HTTP/1.0 200 OK
Content-type: text/plain
Content-Length: 3
OK
None
None
OK
or
ERROR: description of error
Valid
http://ip:port/cgi-bin/update?USER=Admin&PWD=123456&PROFILE_PACK