
28
SMG digital gateway
Instead of using the expression "
<MAC>.cfg
", the server may send the configuration file name in the
following format
: 11.22.33.44.55.66.cfg
, where
11:22:33:44:55:66
is the factory MAC address of the device.
If no Options 66 and 67 are received from the DHCP server, their default values will be used.
For
Option 66
: "update.local".
For
Option 67
: "smg4.manifest;<MAC>.cfg";
"smg2.manifest;<MAC>.cfg".
4.1.1.2
smg4.manifest (smg2.manifest) File Format
smg4.manifest (smg2.manifest) is a text file containing information about the version and the path to the
firmware file located on the automatic update server, as well as the time to restart the device after firmware
update to a new version.
General format of the file content:
<firmware version>;<path to firmware file>; <time (in hours)>
The
<firmware version>
and
<path to firmware file>
parameters are mandatory. The
<Time>
parameter is
optional. If it is not specified, the device will restart as soon as there are no conversation sessions.
Example of a file with time set:
3.1.1.1076;smg4/smg4_firmware_3.1.1.1076.bin;18-21
Example of a file without time set:
3.1.1.1076;smg4/smg4_firmware_3.1.1.1076.bin
4.1.1.3
Algorithm of Automatic Configuration Loading and Checking for a New Configuration File
This procedure is used for automatic download of a new device configuration file from the server. The
configuration file contains the date and time of its creation:
SMG-config:
Version: 13
LastUpdate:
ID: 1
Date: 2015-03-30
Time: 05:59:28
While loading, SMG checks for a configuration file in the specified location on the FTP/TFTP/HTTP/HTTPS
sever (and authorises on the server if necessary). If it finds the configuration file, the gateway downloads it and
compares the creation date and time of the current file and the downloaded one's. If the downloaded file is
created later, the device saves and applies the new configuration. Otherwise, the current configuration remains
valid.
Thus, to change the gateway configuration, operator simply needs to upload a new configuration file to
the server with necessary adjustments and new date and time of creation. The configuration will be updated
automatically after the time set in the
Configuration update period
parameter.