Wiki source code of 4. Firmware update

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

Hide last authors
Admin 12.1 1 (% data-numbered-headings-start="4" style="--numbered-headings-start: 3;font-size: 0px;color: rgba(0, 0, 0, 0.0);margin-bottom: 0px; margin-top: 0px;" %)
2 = Firmware update =
Admin 1.1 3
Admin 12.1 4 == Introduction ==
5
Admin 1.1 6 This document describes the steps for updating the BMS Main 2.x firmware.
7
8 Updating the BMS Main 2.x firmware can be done in the following ways:
9
Admin 18.2 10 * via ElectricDeviceMonitor by Ethernet, CAN or RS-485 bus;
Admin 22.1 11 * via WEB interface by Ethernet or Wi-Fi.
Admin 1.1 12
Admin 12.1 13 == Updating via ElectricDeviceMonitor ==
Admin 1.1 14
15 The following hardware and software are required:
16
17 * ElectricDeviceMonitor application for Windows OS which is used for configuring the BMS Main 2.x.
Admin 18.3 18 * Communication interface:
Admin 19.1 19 ** USB/CAN adapter (for updating by CAN bus);
20 ** USB/RS-485 adapter (for updating by RS-485 bus);
Admin 18.3 21 ** Ethernet cable (for updating via Ethernet);
Admin 19.1 22 ** BMS Wi-Fi installed on BMS Main 2.1 board (for updating by Wi-Fi);
Admin 22.1 23 * SD-card installed on BMS Main 2.1 for update via WEB interface;
Admin 1.1 24 * Firmware file in .srec (Motorola S-record) format.
25
26 Firmware updating includes two steps:
27
28 * starting the bootloader;
29 * uploading the firmware file to the BMS Main 2.x flash memory.
30
Admin 12.1 31 === Start the device bootloader ===
Admin 1.1 32
33 * **via Web Interface**: go to the "Service → Device" section and click on the link "Reset device and start loader":
34
Admin 7.1 35 [[image:1732876898742-205.png||alt="1732877133901-673.png" data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true"]]
Admin 1.1 36
37 * **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:
38
Admin 9.1 39 [[image:1732876996076-348.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="336" width="482"]]
Admin 1.1 40
41 * **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.
42
43 (% class="box infomessage" %)
44 (((
45 **Notes:**
46 In bootloader mode, the indicator LEDs will light up and go out sequentially.
47 The bootloader will be active for 45 seconds. After this time, control will be transferred again to the main firmware.
48 )))
49
Admin 13.1 50 === Upload the firmware ===
Admin 1.1 51
Admin 10.1 52 ~1. Launch the ElectricDeviceMonitor’s Updater module:
Admin 1.1 53
Admin 8.1 54 [[image:1732876973941-940.png||data-xwiki-image-style-alignment="center"]]
Admin 1.1 55
Admin 8.1 56 [[image:1732876980743-472.png||data-xwiki-image-style-alignment="center"]]
Admin 1.1 57
Admin 10.1 58 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).
Admin 1.1 59
60 * **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:
61
Admin 8.1 62 [[image:1732877018498-486.png||data-xwiki-image-style-alignment="center"]]
Admin 1.1 63
64 * **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:
65
Admin 8.1 66 [[image:1732877027638-368.png||data-xwiki-image-style-alignment="center"]]
Admin 1.1 67
Admin 18.1 68 * **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):
Admin 1.1 69
Admin 17.1 70 [[image:1741006734310-418.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true"]]
Admin 1.1 71
Admin 14.1 72 3. Click the "Browse..." button and select the *.srec file with the BMS Main 2.1 firmware.
Admin 1.1 73
Admin 10.1 74 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.
Admin 1.1 75
Admin 12.1 76 == Updating via WEB interface ==
Admin 1.1 77
78 (% class="box warningmessage" %)
79 (((
80 **Warning:**
81 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.
82 )))
83
84 1. Go to the “Service → Device” section and enter a username and password.
85 1. Сlick the “Browse” button and specify the path to the file with the new main firmware (*.srec).
86 1. 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.
87
Admin 7.1 88 [[image:1732876153422-605.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true"]]
Admin 1.1 89
90