LH_communication_protocol
LH_communication_protocol
Host sent
start status Command code
0xA5 --read
0xdd register address
0x5A --write
Protection
state:
bit0 Single overvoltage protection
bit1 Single undervoltage protection
bit2 Whole group overvoltage protection
bit3 Whole group undervoltage protection
bit4 (Charge) over temperature protection
bit5 (Charge) under temperature protection
bit6 (discharge) over temperature protection
bit7 (discharge) under temperature protection
bit8 (charge) over current protect
bit9 (discharge) over current protect
bit10 short protect
bit11 Front detection IC error
bit12 Software lock MOS
bit13~bit15 Reserved
Data length The data length is the number of battery strings multiplied by 2
first cell voltage 2Byte,Unit is mV,high bit first
。。。。 。。。。。
Nth cell voltage 2Byte,Unit is mV
Read 0x05 register contents, read the hardware version number of the BMS, the longest support 31 characters, through th
0xdd 0xa5 0x05
BMS response:
0xdd 0xa5 status,0 is correct,
Host sent: DD A5 04 00 FF FC 77
BMS response: DD A5 00 1E 0F 66 0F 63 0F 63 0F 64 0F 3E 0F 63 0F 37 0F 5B 0F 65 0F 3B 0F 63 0F 63 0F 3C 0F 66 0F 3D
Host sent: DD A5 05 00 FF FB 77
BMS response: DD A5 00 0A 30 31 32 33 34
35 36 37 38 39 FD E9 77 --
Represents its hardware
version
number:0123456789ýéw
length data checksum
(data + length + command code)
Data content, if length checksum, then Complement,
data length, excluding itself
is 0, here skipped then add 1, high bit first, low bit
last
version number
0 -- checksum
0 checksum
Explain
eg: 0x2068,the date is the lowest 5 bit:0x2028&0x1f = 8; month is (0x2068>>5)&0x0f= 0x03 mean
March ;year is 2000+ (0x2068>>9) = 2000 + 0x10 =2016;
0 -- checksum
ngest support 31 characters, through the host computer equipment model to write product model
0 -- checksum
For example, the hardware version is LH-XXXX, then the length is 7, byte0 = 'L'
00 00 10 48 03 0F 02 0B 76 0B 82 FB FF 77
65 0F 3B 0F 63 0F 63 0F 3C 0F 66 0F 3D F9 F9 77
end
0x77
0x77
0x77
0x77
0x77
0x77
0x77
0x77
0x77
-30 200.20390245 975 135.45245 3073 3143
-29 187.31635371 972 127.8373 3061 3133
-28 175.35356518 969 120.70724 3048 3122
-27 164.24281504 965 114.02802 3034 3111
-26 153.91757353 962 107.76801 3020 3099
-25 144.31693727 958 101.89803 3005 3086
-24 135.38511855 954 96.391114 2990 3073
-23 127.07098415 949 91.222318 2974 3059
-22 119.32763833 945 86.368588 2958 3045
-21 112.11204578 940 81.808585 2941 3030
-20 105.38469021 935 77.52255 2923 3014
-19 99.109265188 930 73.49218 2905 2998
-18 93.252394005 925 69.700512 2886 2980
-17 87.783375512 919 66.131812 2867 2963
-16 82.673953554 914 62.771486 2847 2944
-15 77.89810758 908 59.605983 2826 2925
-14 73.431862399 901 56.622721 2805 2904
-13 69.253115215 895 53.810007 2783 2884
-12 65.341478277 888 51.156971 2760 2862
-11 61.678135656 881 48.653504 2737 2840
-10 58.245712787 874 46.290198 2714 2816
-9 55.028157588 867 44.058295 2690 2793
-8 52.010632049 859 41.949638 2665 2768
-7 49.179413318 851 39.956626 2639 2742
-6 46.521803403 843 38.072172 2614 2716
-5 44.026046692 834 36.289667 2587 2689
-4 41.681254561 826 34.602945 2560 2661
-3 39.477336448 817 33.006248 2533 2633
-2 37.40493677 808 31.494201 2505 2604
-1 35.455377189 799 30.06178 2476 2574
0 33.620603721 789 28.70429 2447 2543
1 31.893138272 780 27.417341 2418 2512
2 30.266034194 770 26.196825 2388 2480
3 28.732835518 760 25.038898 2358 2448
4 27.287539532 749 23.939962 2328 2415
5 25.92456242 739 22.896645 2297 2381
6 24.638707683 728 21.905788 2266 2347
7 23.425137119 718 20.964431 2234 2313
8 22.279344126 707 20.069797 2203 2278
9 21.19712914 696 19.219281 2171 2242
10 20.174577024 685 18.410438 2138 2206
11 19.208036236 673 17.640973 2106 2170
12 18.294099641 662 16.90873 2074 2134
13 17.429586814 651 16.211684 2041 2097
14 16.611527723 639 15.547932 2008 2060
15 15.837147665 628 14.915683 1976 2023
16 15.103853366 616 14.313253 1943 1985
17 14.409220138 604 13.739058 1910 1948
18 13.750980014 593 13.191608 1877 1911
19 13.127010776 581 12.669498 1844 1873
20 12.535325813 570 12.171405 1812 1836
21 11.974064731 558 11.696084 1779 1798
22 11.441484668 546 11.242359 1747 1761
23 10.935952241 535 10.809124 1714 1724
24 10.455936097 523 10.395333 1682 1687
25 10 512 10 1650 1650
26 9.5667964254 501 9.6221957 1618 1613
27 9.1550606176 489 9.2610414 1587 1577
28 8.7636050745 478 8.9157073 1555 1541
29 8.3913144276 467 8.5854096 1524 1506
30 8.037140687 456 8.2694077 1494 1470
31 7.7000988237 445 7.9670012 1463 1436
32 7.3792626629 435 7.6775279 1433 1401
33 7.073761066 424 7.4003614 1403 1367
34 6.7827743787 414 7.1349089 1374 1334
35 6.5055311262 404 6.8806094 1345 1301
36 6.2413049358 394 6.6369316 1316 1268
37 5.9894116727 384 6.4033724 1288 1236
38 5.7492067698 374 6.1794552 1260 1205
39 5.5200827405 364 5.9647282 1233 1174
40 5.3014668594 355 5.7587632 1206 1143
41 5.0928189994 346 5.5611544 1179 1114
42 4.8936296135 336 5.3715165 1153 1084
43 4.7034178517 328 5.1894843 1127 1056
44 4.5217298024 319 5.014711 1102 1028
45 4.3481368501 310 4.8468674 1077 1000
46 4.182234141 302 4.6856412 1053 973
47 4.0236391494 294 4.5307354 1029 947
48 3.8719903362 286 4.381868 1005 921
49 3.7269458956 278 4.2387711 982 896
50 3.5881825819 270 4.1011899 960 871
51 3.4553946114 263 3.9688822 938 847
52 3.3282926347 256 3.8416177 916 824
53 3.2066027742 249 3.7191772 895 801
54 3.0900657222 242 3.6013522 874 779
55 2.9784358965 235 3.4879443 853 757
56 2.8714806473 228 3.3787644 833 736
57 2.7689795153 222 3.2736327 814 716
58 2.6707235349 216 3.1723778 795 696
59 2.5765145802 210 3.0748365 776 676
60 2.4861647515 204 2.980853 758 657
61 2.3994957996 198 2.8902792 740 639
62 2.3163385847 193 2.8029735 722 621
63 2.236532568 187 2.7188011 705 603
64 2.1599253344 182 2.6376335 689 586
65 2.0863721434 177 2.5593478 672 570
66 2.0157355071 172 2.4838269 657 554
67 1.9478847934 167 2.410959 641 538
68 1.8826958521 162 2.3406374 626 523
69 1.8200506637 158 2.2727602 611 508
70 1.7598370085 153 2.2072298 597 494
71 1.7019481549 149 2.1439534 583 480
72 1.6462825661 145 2.0828421 569 466
73 1.5927436237 141 2.0238107 555 453
74 1.5412393666 137 1.9667782 542 441
75 1.4916822463 133 1.9116668 530 428
76 1.4439888946 129 1.8584022 517 416
77 1.3980799053 126 1.8069133 505 405
78 1.3538796283 122 1.7571322 493 394
79 1.311315975 119 1.7089936 482 383
80 1.2703202348 115 1.6624354 470 372
81 1.2308269019 112 1.6173979 459 362
82 1.1927735112 109 1.5738238 449 352
83 1.1561004841 106 1.5316586 438 342
84 1.1207509822 103 1.4908498 428 333
85 1.0866707694 100 1.4513471 418 323
86 1.053808081 98 1.4131024 409 315
87 1.0221135007 95 1.3760695 399 306
88 0.9915398434 92 1.3402043 390 298
89 0.962042045 90 1.3054642 381 290
90 0.9335770578 87 1.2718085 372 282
91 0.9061037516 85 1.2391983 364 274
92 0.8795828198 83 1.207596 356 267
93 0.8539766911 81 1.1769657 347 260
94 0.829249445 78 1.1472729 340 253
95 0.8053667326 76 1.1184845 332 246
96 0.7822957007 74 1.0905685 324 239
97 0.7600049207 72 1.0634946 317 233
98 0.7384643207 70 1.0372332 310 227
99 0.7176451209 69 1.0117563 303 221
100 0.697519773 67 0.9870368 296 215
101 0.6780619021 65 0.9630485 290 210
102 0.6592462518 63 0.9397664 283 204
103 0.6410486323 62 0.9171666 277 199
104 0.6234458705 60 0.8952258 271 194
105 0.6064157635 59 0.8739218 265 189
106 0.5899370336 57 0.8532331 259 184
107 0.5739892859 56 0.8331393 254 179
108 0.5585529685 54 0.8136203 248 175
109 0.5436093336 53 0.7946573 243 170
110 0.5291404013 51 0.7762318 238 166
111 0.5151289252 50 0.7583261 233 162
112 0.5015583593 49 0.7409233 228 158
113 0.4884128267 48 0.7240068 223 154
114 0.47567709 46 0.7075611 218 150
115 0.4633365226 45 0.6915707 213 146
116 0.451377082 44 0.6760212 209 143
117 0.4397852842 43 0.6608983 205 139
118 0.428548179 42 0.6461885 200 136
119 0.4176533269 41 0.6318786 196 132
120 0.4070887766 40 0.6179559 192 129
121 0.3968430446 39 0.6044084 188 126
122 0.3869050941 38 0.5912242 184 123
123 0.3772643166 37 0.578392 180 120
124 0.3679105132 36 0.5659009 177 117
125 0.3588338772 35 0.5537402 173 114
126 0.3500249777 35 0.5418999 170 112
127 0.3414747433 34 0.53037 166 109
128 0.3331744475 33 0.5191411 163 106
129 0.3251156937 32 0.508204 160 104
130 0.317290402 31 0.4975499 156 101
131 0.3096907956 31 0.4871702 153 99
132 0.3023093884 30 0.4770567 150 97
133 0.2951389729 29 0.4672014 147 95
134 0.2881726091 29 0.4575966 144 92
135 0.281403613 28 0.4482349 142 90
136 0.2748255467 27 0.4391091 139 88
137 0.268432208 27 0.4302122 136 86
138 0.2622176211 26 0.4215376 133 84
139 0.2561760275 26 0.4130787 131 82
140 0.250301877 25 0.4048293 128 81
141 0.2445898197 24 0.3967833 126 79
142 0.2390346977 24 0.3889348 124 77
143 0.2336315378 23 0.3812782 121 75
144 0.2283755439 23 0.3738079 119 74
145 0.2232620904 22 0.3665186 117 72
146 0.2182867149 22 0.3594053 114 70
147 0.2134451125 21 0.3524629 112 69
148 0.2087331292 21 0.3456867 110 67
149 0.2041467563 20 0.3390719 108 66
150 0.1996821246 20 0.332614 106 65