Loss of files during the software update

Материал из Wiren Board
Версия от 18:07, 23 апреля 2019; RomanKulibaba (обсуждение | вклад) (Новая страница: «===Updating installed packages===»)

Другие языки:

Firmware update methods

There are three ways to update the controller SOFTWARE:

  1. via the web interface.
  2. By complete flashing the controller.
  3. Updating packages installed on the device.


Updating via web interface

You can learn more about the update process via the web interface in the corresponding section: Firmware _update. This method is recommended because some system settings (such as network settings, time zone, web interface password, etc.), as well as all user settings and configuration files will remain unchanged. In particular, many files in the ''/etc/'' directory are untouched.

When you upgrade, the following files are saved:

  • all devices connected via по RS-485 (файл ''/etc/wb-mqtt-serial.conf''),
  • I/O modules and extensions( ''/etc/wb-hardware.conf'' file),
  • universal input/output settings A1-A4 (file ''/etc/wb-homa-adc.conf''),
  • user scripts (located in the ''/etc/wb-rules/'' folder),
  • controller GPIO pin settings (file ''/etc/wb-homa-gpio.conf'').

If you have stored any files on the controller, they will be lost during the upgrade, so it is recommended to make a backup by connecting the controller to the PC to view the files.просмотра файлов.


Full flashing of the controller

This process is described in detail here. This method of updating destroys absolutely all data of the device. It is recommended for use in case of emergency situations or improper operation of the controller. The internal storage partitions are overwritten in the full system image, so even user settings and scripts are lost. You can learn more about the internal storage partition structure by reading this article.


Updating installed packages

Не стоит путать обновление прошивки контроллера с обновлением установленных на устройстве пакетов, производимым командами

apt-get update
apt-get upgrade

При обновлении пакетов, пользовательские данные остаются без изменений, однако может появиться диалоговое окно вида:

В котором нужно выбрать, перезаписать ли конфигурационные файлы. Это окно появляется, если Вы производили изменение конфигурационного файла, относящегося к обновляемому пакету (например, добавляли модули расширения или modbus-устройства через веб-интерфейс). Чтобы произведённые Вами ранее настройки контроллера сохранились, нужно отказаться от перезаписи конфигурационного файла, выбрав пункт ''keep the local version currently installed''. В случае же подтверждения перезаписи (выбора самого верхнего пункта), старые конфигурационные файлы безвозвратно удаляются.