4. Firmware update

Last modified by Admin on 2025/03/03 13:18

Firmware update

Introduction

This document describes the steps for updating the BMS Main 2.x firmware.

Updating the BMS Main 2.x firmware can be done in the following ways:

  • via ElectricDeviceMonitor by Ethernet, CAN or RS-485 bus;
  • via WEB interface by Ethernet or Wi-Fi.

Updating via ElectricDeviceMonitor

The following hardware and software are required:

  • ElectricDeviceMonitor application for Windows OS which is used for configuring the BMS Main 2.x.
  • Communication interface:
    • USB/CAN adapter (for updating by CAN bus);
    • USB/RS-485 adapter (for updating by RS-485 bus);
    • Ethernet cable (for updating via Ethernet);
    • BMS Wi-Fi installed on BMS Main 2.1 board (for updating by Wi-Fi);
  • SD-card installed on BMS Main 2.1 for update via WEB interface;
  • Firmware file in .srec (Motorola S-record) format.

Firmware updating includes two steps:

  • starting the bootloader;
  • uploading the firmware file to the BMS Main 2.x flash memory.

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 (set up in BMS settings):

1741006734310-418.png

3. Click the "Browse..." button and select the *.srec file with the BMS Main 2.1 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