0
|
1 |
global Mapping, AddMenuEntries
|
|
2 |
|
|
3 |
"""
|
|
4 |
MappingDictionary for DS-418
|
|
5 |
"""
|
|
6 |
|
|
7 |
Mapping = {
|
69
|
8 |
0x6000 : {"name" : "Battery Status", "struct" : var, "need" : True, "values" :
|
|
9 |
[{"name" : "Battery Status", "type" : 0x05, "access" : 'ro', "pdo" : True}]},
|
|
10 |
0x6001 : {"name" : "Charger Status", "struct" : var, "need" : True, "values" :
|
|
11 |
[{"name" : "Charger Status", "type" : 0x05, "access" : 'rw', "pdo" : True}]},
|
|
12 |
0x6010 : {"name" : "Temperature", "struct" : var, "need" : True, "values" :
|
|
13 |
[{"name" : "Temperature", "type" : 0x03, "access" : 'ro', "pdo" : True}]},
|
0
|
14 |
|
69
|
15 |
0x6020 : {"name" : "Battery Parameters", "struct" : array, "need" : True, "values" :
|
|
16 |
[{"name" : "Highest Sub-Index Supported", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
17 |
{"name" : "Battery Type", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
18 |
{"name" : "Ah Capacity", "type" : 0x06, "access" : 'ro', "pdo" : False},
|
|
19 |
{"name" : "Maximum Charge Current", "type" : 0x06, "access" : 'ro', "pdo" : False},
|
|
20 |
{"name" : "Number of Cells", "type" : 0x06, "access" : 'ro', "pdo" : False}]},
|
0
|
21 |
|
69
|
22 |
0x6030 : {"name" : "Battery Serial Number", "struct" : rec, "need" : False, "values" :
|
|
23 |
[{"name" : "Number of Elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
24 |
{"name" : "Packed ASCII Characters %d to %d[(sub*4-3,sub*4)]", "type" : 0x07, "access" : 'ro', "pdo" : False, "nbmax" : 0x03}]},
|
|
25 |
0x6031 : {"name" : "Battery ID", "struct" : rec, "need" : False, "values" :
|
|
26 |
[{"name" : "Number of Elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
27 |
{"name" : "Packed ASCII Characters %d to %d[(sub*4-3,sub*4)]", "type" : 0x07, "access" : 'ro', "pdo" : False, "nbmax" : 0x05}]},
|
|
28 |
0x6040 : {"name" : "Vehicle Serial Number", "struct" : rec, "need" : False, "values" :
|
|
29 |
[{"name" : "Number of Elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
30 |
{"name" : "Packed ASCII Characters %d to %d[(sub*4-3,sub*4)]", "type" : 0x07, "access" : 'ro', "pdo" : False, "nbmax" : 0x05}]},
|
|
31 |
0x6041 : {"name" : "Vehicle ID", "struct" : rec, "need" : False, "values" :
|
|
32 |
[{"name" : "Number of Elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
33 |
{"name" : "Packed ASCII Characters %d to %d[(sub*4-3,sub*4)]", "type" : 0x07, "access" : 'ro', "pdo" : False, "nbmax" : 0x05}]},
|
0
|
34 |
|
69
|
35 |
0x6050 : {"name" : "Cumulative Total Ah Charge", "struct" : var, "need" : False, "values" :
|
|
36 |
[{"name" : "Cumulative Total Ah Charge", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
0
|
37 |
|
69
|
38 |
0x6051 : {"name" : "Ah Expected Since Last Charge", "struct" : var, "need" : False, "values" :
|
|
39 |
[{"name" : "Ah Expected Since Last Charge", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
|
0
|
40 |
|
69
|
41 |
0x6052 : {"name" : "Ah Returned During Last Charge", "struct" : var, "need" : False, "values" :
|
|
42 |
[{"name" : "Ah Returned During Last Charge", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
|
0
|
43 |
|
69
|
44 |
0x6053 : {"name" : "Ah Since Last Equalization", "struct" : var, "need" : False, "values" :
|
|
45 |
[{"name" : "Ah Since Last Equalization", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
|
0
|
46 |
|
69
|
47 |
0x6054 : {"name" : "Date of Last Equalization", "struct" : array, "need" : False, "values" :
|
|
48 |
[{"name" : "Number of Elements", "type" : 0x05, "access" : 'ro', "pdo" : False},
|
|
49 |
{"name" : "Number of Minutes", "type" : 0x06, "access" : 'rw', "pdo" : False},
|
|
50 |
{"name" : "Number of Days", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
|
0
|
51 |
|
69
|
52 |
0x6060 : {"name" : "Battery Voltage", "struct" : var, "need" : False, "values" :
|
|
53 |
[{"name" : "Battery Voltage", "type" : 0x07, "access" : 'ro', "pdo" : True}]},
|
0
|
54 |
|
69
|
55 |
0x6070 : {"name" : "Charge Current Requested", "struct" : var, "need" : False, "values" :
|
|
56 |
[{"name" : "Charge Current Requested", "type" : 0x06, "access" : 'ro', "pdo" : True}]},
|
0
|
57 |
|
69
|
58 |
0x6080 : {"name" : "Charger State of Charge", "struct" : var, "need" : False, "values" :
|
|
59 |
[{"name" : "Charge State of Charge", "type" : 0x05, "access" : 'rw', "pdo" : True}]},
|
0
|
60 |
|
69
|
61 |
0x6081 : {"name" : "Battery State of Charge", "struct" : var, "need" : False, "values" :
|
|
62 |
[{"name" : "Battery State of Charge", "type" : 0x05, "access" : 'ro', "pdo" : True}]},
|
0
|
63 |
|
69
|
64 |
0x6090 : {"name" : "Water Level Status", "struct" : var, "need" : False, "values" :
|
|
65 |
[{"name" : "Water Level Status", "type" : 0x05, "access" : 'ro', "pdo" : False}]}
|
0
|
66 |
|
|
67 |
}
|
|
68 |
|
|
69 |
AddMenuEntries = []
|