0
|
1 |
global Mapping, AddMenuEntries
|
|
2 |
|
|
3 |
"""
|
|
4 |
MappingDictionary for DS-418
|
|
5 |
"""
|
|
6 |
|
|
7 |
Mapping = {
|
|
8 |
|
|
9 |
0x0080 : {"name" : "BatteryPar", "struct" : array, "need" : False, "values" :
|
|
10 |
[{"name" : "Highest sub-index supported", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
11 |
{"name" : "Battery type", "type" : 0x05, "access" : 'rw', "pdo" : False},
|
|
12 |
{"name" : "Ah capacity", "type" : 0x06, "access" : 'rw', "pdo" : False},
|
|
13 |
{"name" : "Maximum charge current", "type" : 0x06, "access" : 'rw', "pdo" : False},
|
|
14 |
{"name" : "Number of cells", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
|
|
15 |
|
|
16 |
0x6000 : {"name" : "Battery status", "struct" : var, "need" : True, "values" :
|
|
17 |
[{"name" : "battery_status", "type" : 0x05, "access" : 'ro', "pdo" : True}]},
|
|
18 |
|
|
19 |
0x6001 : {"name" : "Charger status", "struct" : var, "need" : True, "values" :
|
|
20 |
[{"name" : "charger_status", "type" : 0x05, "access" : 'rw', "pdo" : True}]},
|
|
21 |
|
|
22 |
0x6010 : {"name" : "temperature", "struct" : var, "need" : True, "values" :
|
|
23 |
[{"name" : "temperature", "type" : 0x03, "access" : 'ro', "pdo" : True}]},
|
|
24 |
|
|
25 |
0x6020 : {"name" : "Battery parameters", "struct" : array, "need" : True, "values" :
|
|
26 |
[{"name" : "highest sub-index supported", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
27 |
{"name" : "battery type", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
28 |
{"name" : "ah capacity", "type" : 0x06, "access" : 'ro', "pdo" : False},
|
|
29 |
{"name" : "maximum charge current", "type" : 0x06, "access" : 'ro', "pdo" : False},
|
|
30 |
{"name" : "number of cells", "type" : 0x06, "access" : 'ro', "pdo" : False}]},
|
|
31 |
|
|
32 |
0x6030 : {"name" : "Battery serial number", "struct" : array, "need" : False, "values" :
|
|
33 |
[{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
34 |
{"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
35 |
{"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
36 |
{"name" : "packed ASCII characters 9 to 10", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
|
37 |
|
|
38 |
0x6031 : {"name" : "Battery ID", "struct" : array, "need" : False, "values" :
|
|
39 |
[{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
40 |
{"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
41 |
{"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
42 |
{"name" : "packed ASCII characters 9 to 12", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
43 |
{"name" : "packed ASCII characters 13 to 16", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
44 |
{"name" : "packed ASCII characters 17 to 20", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
|
45 |
|
|
46 |
0x6040 : {"name" : "vehicle serial number", "struct" : array, "need" : False, "values" :
|
|
47 |
[{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
48 |
{"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
49 |
{"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
50 |
{"name" : "packed ASCII characters 9 to 12", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
51 |
{"name" : "packed ASCII characters 13 to 16", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
52 |
{"name" : "packed ASCII characters 17 to 20", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
|
53 |
|
|
54 |
0x6041 : {"name" : "vehicle ID", "struct" : array, "need" : False, "values" :
|
|
55 |
[{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
56 |
{"name" : "packed ASCII characters 1 to 4", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
57 |
{"name" : "packed ASCII characters 5 to 8", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
58 |
{"name" : "packed ASCII characters 9 to 12", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
59 |
{"name" : "packed ASCII characters 13 to 16", "type" : 0x07, "access" : 'ro', "pdo" : False},
|
|
60 |
{"name" : "packed ASCII characters 17 to 20", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
|
61 |
|
|
62 |
0x6050 : {"name" : "cumulative total ah charge", "struct" : var, "need" : False, "values" :
|
|
63 |
[{"name" : "cumulative total ah charge", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
|
64 |
|
|
65 |
0x6051 : {"name" : "ah expected since last charge", "struct" : var, "need" : False, "values" :
|
|
66 |
[{"name" : "ah expected since last charge", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
|
67 |
|
|
68 |
0x6052 : {"name" : "Ah returned during last charge", "struct" : var, "need" : False, "values" :
|
|
69 |
[{"name" : "ah returned during last charge", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
|
|
70 |
|
|
71 |
0x6053 : {"name" : "ah since last equalization", "struct" : var, "need" : False, "values" :
|
|
72 |
[{"name" : "ah since last equalization", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
|
|
73 |
|
|
74 |
0x6041 : {"name" : "date of laste equalization", "struct" : array, "need" : False, "values" :
|
|
75 |
[{"name" : "number of elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
76 |
{"name" : "number of minutes", "type" : 0x06, "access" : 'rw', "pdo" : False},
|
|
77 |
{"name" : "number of days", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
|
|
78 |
|
|
79 |
0x6060 : {"name" : "Battery voltage", "struct" : var, "need" : False, "values" :
|
|
80 |
[{"name" : "battery voltage", "type" : 0x07, "access" : 'ro', "pdo" : True}]},
|
|
81 |
|
|
82 |
0x6070 : {"name" : "Charge current requested", "struct" : var, "need" : False, "values" :
|
|
83 |
[{"name" : "charge current requested", "type" : 0x06, "access" : 'ro', "pdo" : True}]},
|
|
84 |
|
|
85 |
0x6080 : {"name" : "Charger state of charge", "struct" : var, "need" : False, "values" :
|
|
86 |
[{"name" : "charge state of charge", "type" : 0x05, "access" : 'rw', "pdo" : True}]},
|
|
87 |
|
|
88 |
0x6081 : {"name" : "Battery state of charge", "struct" : var, "need" : False, "values" :
|
|
89 |
[{"name" : "battery state of charge", "type" : 0x05, "access" : 'ro', "pdo" : True}]},
|
|
90 |
|
|
91 |
0x6090 : {"name" : "Water level status", "struct" : var, "need" : False, "values" :
|
|
92 |
[{"name" : "Water level status", "type" : 0x05, "access" : 'ro', "pdo" : False}]}
|
|
93 |
|
|
94 |
}
|
|
95 |
|
|
96 |
AddMenuEntries = []
|