Wiki source code of 3. Configuration

Last modified by Admin on 2024/12/13 16:00

Hide last authors
Admin 1.1 1 (% data-numbered-headings-start="3" style="--numbered-headings-start: 2;font-size: 0px;color: rgba(0, 0, 0, 0.0);margin-bottom: 0px; margin-top: 0px;" %)
2 = Configuration =
3
4 The BMS Indication 2.x is configured over the CAN bus (P2, P3 or J1 headers can be used). The device is a slave in the CANopen network.
5
6 The default settings to connect to the BMS Indication 2.x are:
7
8 * CAN bus rate, kbps — 250;
9 * CANopen Node ID — 10.
10
11 To change the BMS Indication 2.x parameters use the ElectricDeviceMonitor software.
12
13 [[image:1734104847301-983.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="340" width="300"]]
14
15 To confugure the device it is necessary to click the “BMS Indication 1.x-2.x” button. A window with the connection parameters will open:
16
17 [[image:1734104847305-193.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="239" width="450"]]
18
19 Connection to the BMS Indication 2.x can be done using the following USB-CAN adapters:
20
21 * Systec USB-CANmodul1
22 * PEAK PCAN-USB
23 * Marathon CAN-bus-USB
24 * BMS USB-CAN
25
26 After setting communication parameters it is necessary to click on the “Launch monitor” button. A window with the device parameters will open.
27
28 [[image:1734104847306-125.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="317" width="600"]]
29
30 The device parameters are divided into the following groups:
31
32 * //Info// – a name and a version of the device, a version of the firmware;
33 * //CAN// – parameters of the CANopen communication;
34 * //Indication options// – parameters of the device;
35 * //Filters //– parameters of errors indication;
36 * //Low battery level signal (single beep)// – parameters for signaling that the battery has a low charge level;
37 * //Battery discharged signal (three beeps)// – parameters for signaling that the battery is empty;
38 * //Charger connected/disconnected signal// – parameters for signaling that the charger is connected or disconnected;
39 * //Commands// – commands to the device.
40
41 **//Info//** group contains the following parameters:
42
43 * Device name – a name of the device in the CANopen network (“BMS Indication”);
44 * Hardware version – a version of the board;
45 * Software version – a version of the firmware.
46
47 **//CAN//**// //group contains the following parameters:
48
49 * CANopen Node ID – an identifier of the device in the CANopen network (10 by default);
50 * CAN baud rate – CAN bus speed, kbps;
51 * BMS Main Node ID – an identifier of the BMS controller in the CANopen network (32 by default);
52 * Heartbeat – a flag for sending Heartbeat messages;
53 * Heartbeat period – a period of sending Heartbeat messages, millisecond;
54 * Ignore NMT messages – a flag for ignoring command messages in the CANopen network.
55
56 **//Indication options//** group contains the following parameters:
57
58 * Rotate LED indicator – a flag for rotating the 10-LED bar;
59 * Indicate overcurrent error – a flag for signaling about high current;
60 * Indicate overvoltage error – a flag for signaling about high cell voltage;
61 * Indicate Crown error – a flag for signaling about loss of communication with the BMS Crown;
62 * Disable LED indicator – a flag for turning off the 10-LED bar;
63 * Disable buzzer – a flag for turning off the buzzer.
64
65 **//Filters//** group contains the following parameters:
66
67 * Errors filter (all red segments) – errors that are indicated by flashing all red segments of the 10-LED bar;
68 * Errors filter (two red segments) – errors that are indicated by flashing two red segments in the middle of the 10-LED bar;
69 * Errors filter (two yellow segments) – errors that are indicated by flashing two yellow segments in the middle of the 10-LED bar;
70 * Errors filter (two green segments) – errors that are indicated by flashing two green segments in the middle of the 10-LED bar.
71
72 //Errors filter// for the four different color patterns is a 32-bit word which is written in the hexadecimal notation. Each bit of the word corresponds to an error. If the bit is set to “1”, the device signals about the error corresponding this bit. The list of bits and errors is in the table below.
73
74 |**Bit number**|**Error**
75 |**0**|Overcurrent
76 |**1**|Undervoltage
77 |**2**|Overvoltage
78 |**3**|Low DCH temperature
79 |**4**|High DCH temperature
80 |**5**|Battery cover is opened
81 |**6**|High humidity
82 |**7**|Water in the battery
83 |**8**|Logic high temperature
84 |**9**|Logic offline
85 |**10**|Critical error
86 |**11**|Crown error
87 |**12**|Cell count error
88 |**13**|HYG offline
89 |**14**|Not used (should be set to 0)
90 |**15**|Combilift offline
91 |**16**|Short circuit
92 |**17**|Contactor high temperature
93 |**18**|Logic count error
94 |**19**|ADC error
95 |**20**|Current sensor error
96 |**21**|CH contactor cycles error
97 |**22**|DCH contactor cycles error
98 |**23**|Shunt offline
99 |**24**|Shunt error
100 |**25**|Settings error
101 |**26**|WDT reset
102 |**27**|No temperature sensors
103 |**28**|Temperature sensor is shorted
104 |**29**|Spirit offline
105 |**30-31**|Not used (should be set to 0)
106
107 For example, it is necessary to signal about the following errors:
108
109 * Low DCH temperature (bit 3);
110 * HYG offline (bit 13);
111 * Contactor high temperature (bit 17).
112
113 In this case //Errors filter// should be equal to the «22008» value. This value is calculated the following way:
114
115 2^^3^^ + 2^^13^^ + 2^^17^^ = 8,,10,, + 8192,,10,, + 131072,,10,, = 139272,,10,, = 22008,,16,,
116
117 If the value is set to the //Errors filter (all red segments) //field, the errors above will be indicated by all red segments of the 10-LED bar.
118
119
120 **//Low battery level signal (single beep)//** group contains the following parameters:
121
122 * SoC minimum value to signal – a charge level of the battery, upon reaching which a sound signal is emitted, %;
123 * Signal period – a period of the sound signal, second;
124 * Loudness – volume of the sound signal (Quiet or Loud).
125
126 **//Battery discharged signal (three beeps)//** group contains the following parameters:
127
128 * SoC minimum value to signal – a charge level of the battery, upon reaching which three sound signals are emitted, %;
129 * Signal period – a period of the sound signals, second;
130 * Loudness – volume of the sound signals (Quiet or Loud).
131
132 **//Charger connected/disconnected signal//** group contains the following parameters:
133
134 * Signal duration on charger connected – duration of the sound signal (one beep) emitting if the charger is connected to the battery, second;
135 * Signal duration on charger disconnected – duration of the sound signal (two beeps) emitting if the charger is disconnected from the battery, second.
136
137 **//Commands//** group contains the following parameters:
138
139 * Test LED indicator – a command for testing the 10-LED bar (all segments will be flashing red, yellow, and green alternately);
140 * Test buzzer – a command for testing the buzzer (loud signal, quiet signal and a pause will be emitted alternately);
141 * Reset and start loader – a command to reboot the device and start the bootloader for updating the firmware.