The System Menu :: Update


param.cgi?cmd=getupdateinfo

Get State of the Update Process

  • state: not_started, preparing, prepare_error, installing, install_error, success
  • progress: [0-100] %

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getupdateinfo

cmd="getupdateinfo";
state="not_started";
progress="0";
response="200";

param.cgi?cmd=doupdate

Update from Local File

  • type: tar - update via tar from device, remote - update via remote server`
  • path: path to tar file on device

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=doupdate&type=remote

cmd="doupdate";
response="200";

param.cgi?cmd=getremoteupdateattr

Update from Local File

  • host: String e.g. updateserver.v2.instar.de
  • port: Integer e.g. 443
  • name: nt528_stable or nt528_nightly

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getremoteupdateattr

cmd="getremoteupdateattr";
host="updateserver.v2.instar.de";
port="443";
name="nt528_nightly";
response="200";
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=setremoteupdateattr&name=nt528_nightly

cmd="setremoteupdateattr";
response="200";

param.cgi?cmd=getlatestversioninfo

Update from Local File

  • available: Update availabe [1,0]
  • current_version: Current build revision
  • latest_version: Latest build revision

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getlatestversioninfo

cmd="getlatestversioninfo";
available="1";
current_version="216";
latest_version="217";
response="200";

param.cgi?cmd=getupdateinfo

Check Update Progress

  • state: Update service state [not_started,preparing,prepare_error,installing,install_error,success]
  • progress: Update progress in percent [0,100]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getupdateinfo

cmd="getupdateinfo";
state="not_started";
progress="0";
response="200";

upgrade.cgi[?-filename=]

Update your Cameras Software

Example

Has to be implemented with POST Method