Changes

2,040 bytes added ,  14:48, 31 August 2023
Line 35: Line 35:  
# Fill in the correct '''Data mask'''. This field determines which IO elements of the frame the user will receive. As an example, the part of the  CAN protocol was taken. Firstly, the user has to locate the data frame, which he wants to read, for this situation, data frame '''„Battery status“''' was taken into account. It holds five I/O parameters of the battery. If we would like to receive all data of the frame, in the configurator the user has to leave the default value in the ''Data mask field'' '''(Selected ALL)''' - which is used in this example.
 
# Fill in the correct '''Data mask'''. This field determines which IO elements of the frame the user will receive. As an example, the part of the  CAN protocol was taken. Firstly, the user has to locate the data frame, which he wants to read, for this situation, data frame '''„Battery status“''' was taken into account. It holds five I/O parameters of the battery. If we would like to receive all data of the frame, in the configurator the user has to leave the default value in the ''Data mask field'' '''(Selected ALL)''' - which is used in this example.
   −
[[Image:Manual_can_IO_2.png|left]]
+
[[Image:Manual_CAN_IO_2.png|left]]<br />
 +
If the user would like to get everything except, for example, the '''Battery Temperature''' value, some modifications have to be done to the Data mask field. In this case, if the user does not want to get the '''Battery Temperature''' value, he should find where this information stands in the data frame '''(byte orientation)'''. For this example, '''Battery Temperature''' parameter can be found between '''4th''' and '''5th''' byte of the frame. It is explained in the table below how the 8 byte CAN frame breaks down and which part of the frame has to be changed according to this example.
 +
 
 +
''Protocol example'':<br />
 +
{| class="wikitable"
 +
|-
 +
! Frame ID
 +
! Name
 +
! Period [ms]
 +
! Byte orientation
 +
! Bit
 +
! Description
 +
! Scale factor
 +
! Source addresses
 +
! Priority
 +
|-
 +
| 0x620
 +
| Range Estimation
 +
| 1000
 +
| 1
 +
| 7:0
 +
| Estimated range km
 +
| 1 km
 +
| 17
 +
| 1
 +
|-
 +
| 0x300
 +
| Battery status
 +
| On request
 +
| 0<br />1<br />3:2<br />5:4<br />7:6
 +
| 7:0<br />7:0<br />7:0<br />7:0<br />7:0
 +
| Average of the two batteries SoC %<br />SoC second battery %<br />Battery Current (A)<br />Battery Temperature (C)<br />Battery Voltage (V)
 +
| 1 %<br />1 %<br />0,0625 A<br />0,1 C<br />0,046 V
 +
| 18
 +
| 2
 +
|-
 +
| 0x451
 +
| Battery fast charging enable/disable
 +
|
 +
| 0:3<br />4:7<br />
 +
| 7:0<br />7:0<br />
 +
| Battery charge enable<br />Battery charge disable<br />
 +
| ON/OFF
 +
| 19
 +
| 3
 +
|-
 +
| rowspan="5" | 0x301
 +
| rowspan="5" | Battery Status message request
 +
| rowspan="5" |
 +
| rowspan="5" | 0:1
 +
| rowspan="5" | 5:0
 +
| 00001 - request SOC 1st
 +
|
 +
| rowspan="5" | 18
 +
| rowspan="5" | 2
 +
|-
 +
| 00010 - request SOC 2nd
 +
|
 +
|-
 +
| 00100 - request Current
 +
|
 +
|-
 +
| 01000 - request temperature
 +
|
 +
|-
 +
| 10000 - request voltage
 +
|
 +
|-
 +
| 0x452
 +
| Battery Fast charging mode switch status
 +
|
 +
| 0:1
 +
| 2:0
 +
| 01 - Charge enable<br />10 - Charge disabled
 +
|
 +
| 19
 +
| 3
 +
|-
 +
| rowspan="2" | 0x453
 +
| rowspan="2" | Battery Fast charging mode switch
 +
| rowspan="2" |
 +
| rowspan="2" | 0:1
 +
| rowspan="2" | 2:0
 +
| 01 - Charge enable
 +
| rowspan="2" |
 +
| rowspan="2" | 19
 +
| rowspan="2" | 3
 +
|-
 +
| 10 - Charge disable
 +
|}

Navigation menu