
It is easy to create the length files using the WriteFileSize tool, which is included in the firmware
update archives. See how to get newest version of the firmware update archive in the chapter
7
Updating the Firmware in a New device
on page 42.
WriteFileSize is a command-line tool. When run without arguments, it displays its
documentation.
Typical use is to give WriteFileSize just one argument:
WriteFileSize MyDir
which results in adding length files for all of the files in the subdirectory MyDir.
Then, length checking must be activated in the configuration using the variable
CHECK_LENGTH:
:
CHECK_LENGTH=1
Repeating download
If download occasionally fails for unknown reasons, it may help to enable immediate repeating
of downloads in cases of failure, by increasing the value of
REPEAT_DOWNLOADE
.
Timeouts
On high latency networks, it may take too much time for the servers to respond to the
requests. In such cases, updating over network keeps failing. One solution to this problem is
setting longer time limits for communication with the servers. It's possible to increase the
values of
INTITAL_TIMEOUT
and OPERATIVE_TIMEOUT
.
Note:
increasing these values increases the time spent reconnecting in vain if the problem is
elsewhere.
3.7
Updating configuration over network
Setting automatic network update of the configuration is similar to the setting of automatic
network update of the music.
At least the
CONFIG
has to be set, for example:
CONFIG_SERVER=configserver.example.org
If set this way, the FTP MP3 Player tries to contact the configuration server with the following
default settings:
●
every 60 minutes (default value for CONFIG_UPDATE)
●
to connect using protocol FTP (default value for
CONFIG_PROTOCOL
)
●
to server musicserver.example.org (this was set using
CONFIG SERVER
)
●
on port 21 (default value for
CONFIG_PORT
, when protocol FTP is used)
●
using username “anonymous” (default value for
CONFIG_USERNAME
)
●
and password “a@a” (default value for
CONFIG_PASSWORD
)
●
and download new version of the configuration file “player.cfg” from root directory
(default value for
CONFG_DIR
)
Music update is made immediately after every configuration update.
12
Configuration of the player