4. Обвновление встроенного ПО

Редактировал(а) Admin 2025/01/10 19:46

Firmware update

Введение

Настоящий документ описывает порядок обновления основной микропрограммы устройства BMS Main 2.x.

Обновление основной микропрограммы BMS Main 2.x может быть выполнено следующими способами:

  • через ElectricDeviceMonitor по сети Ethernet, шине CAN или RS-485;
  • через WEB-интерфейс по сети Ethernet или Wi-Fi.

Обновление через ElectricDeviceMonitor

Требуемые аппаратные и программные средства:

  • Программа ElectricDeviceMonitor для ОС Windows, с помощью которой выполняется настройка и обслуживание устройств BMS.
  • Адаптер USB/CAN (если обновление осуществляется по шине CAN).
  • Адаптер USB/RS-485 или RS-232/RS-485 (если обновление осуществляется по шине RS-485).
  • Файл с основной микропрограммой (должен иметь формат Motorola S-record).

Обновление ВПО включает два этапа:

  • передачу управления встроенному загрузчику устройства;
  • загрузку с помощью встроенного загрузчика основной микропрограммы в память устройства.

Start the device bootloader

  • via Web Interface: go to the "Service → Device" section and click on the link "Reset device and start loader":

1732877133901-673.png

  • via ElectricDeviceMonitor: connect to the BMS Main 2.x device using a USB-CAN adapter and the ElectricDeviceMonitor program. Next, in the monitor program, go to the "Service → Commands" section and click on the "Reset device and start loader" button:

1732876996076-348.png

  • via SW1 button: hold the SW1 button on the device for 1 second. After the indication LEDs go out, release the button. A restart will be performed, and the device will enter bootloader mode.

Notes:
In bootloader mode, the indicator LEDs will light up and go out sequentially.
The bootloader will be active for 45 seconds. After this time, control will be transferred again to the main firmware.

Upload the firmware.

1. Launch the ElectricDeviceMonitor’s Updater module:

1732876973941-940.png

1732876980743-472.png

2. From the drop-down menu of the Updater window, select the method of connecting to the BMS Main 2.x device and configure the connection parameters (the "Settings..." button).

  • Ethernet connection: select the connection method "TCP transport", click the "Settings..." button and, in the window that appears, specify the device's IP address and bootloader port number:

1732877018498-486.png

  • CAN connection: select the "CAN transport" connection method, click the "Settings..." button. In the window that appears, select the USB-CAN adapter with which the main firmware will be loaded, and specify the baud rate via the CAN bus:

1732877027638-368.png

  • RS-485 connection: select the connection method “Serial port transport”, click the “Settings...” button. In the window that appears, select the COM port through which the PC connects to the device, and specify the baud rate for the COM port:

1732877039628-104.png

3. Click the "Browse..." button and select the *.srec file with the main firmware.

4. Click the “Update” button while the device is in bootloader mode. The process of loading the new firmware into the device memory will begin.

Updating via WEB interface

Warning:
To update the main firmware via the WEB interface, it is necessary that the “Update using the WEB interface” flag is set in the “Service → User” section and an SD card is installed into the device. If the specified flag or SD card is not installed, then updating via the WEB interface is impossible.

  1. Go to the “Service → Device” section and enter a username and password.
  2. Сlick the “Browse” button and specify the path to the file with the new main firmware (*.srec).
  3. Click the "Update" button. The file will begin transferring to the device. Once the transfer is complete, the device will reboot and the main firmware update will begin. The update takes approximately 2 minutes.

1732876153422-605.png