Attention! Beginning from firmware version 0.2.18 all customizations of embedded portal is necessary to make using source codes of portal. After all customizations complete it is necessary to make compiling and minimization of source code of portal. After compiling and minization all files of portal could be placed in home directory for further image making. Source code of portal (portal-dev-*.tgz is in directory with current release http://soft.infomir.com.ua)

Autoupdate module description

Autoupdate module is for organization of firmware version automatic and handle updating via HTTP from URL.

By default autoupdate module works from manufacturer URL if the variable autoupdateURL is not specified!!!

Example of the variable:

autoupdateURL=http://example.com/update_list.txt

autoupdateURL - URL which should contain update_list.txt file

Stages of update process

Verification environment variable autoupdate_cond, status «0» - autoupdate option, «1» - update with confirmation, «2» - autoupdate is disabled. If the variable is «0» or «1» than the necessaty of update initialized.

File reading which contain the list of all available updates which are sorted by date from old to new (the last/new record in the end).

Date comparing from the new/last record with image making date which is specified by stb.RDir(«ImageDate») function and returns environment variable Image_Date. In case if image making date is newest - autoupdate doesn't initialized.

If the date in file update list is newest than the date of image making date in STB than - additive date checking initialized according to the image making date according to the URL which is pointed in update text file.

If the additive update shows that update date is newest than current - checking of image type initialized. Autoupdate to alpha version doesn't initialized. Autoupdate to beta version initialized in case if the option in “Settings” is enabled. This option set the environment variable «betaupdate_cond». Status «1» - «update», «0» - «don't update». By default the satus is set to «don't update».

If the version «release» or «beta» and set option «update on beta versions» & the date is newest then image making date of current, then autoupdate initialized.

Syntax of update_list.txt file, example:

[
{"name":"0.2.14-r3", "url":"http://example.com/250/imageupdate214r3", "type":"release", "date":"26 Nov 2012 23:22:19 GMT+0200", "descr":"Release"},
{"name":"0.2.14-r7", "url":"http://example.com/250/imageupdate214r7", "type":"release", "date":"30 Nov 2012 14:43:29 GMT+0200", "descr":"Release"}
]

where:

name - name;

url - url of firmware version;

type - type of release;

date - time and date of image, timezone in GMT;

descr - description;