Skip to content

Commit 6b352d7

Browse files
authored
Update responses. (#13)
1 parent 14d1aff commit 6b352d7

23 files changed

Lines changed: 315 additions & 110 deletions

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@
77
],
88
"python.testing.unittestEnabled": false,
99
"python.testing.pytestEnabled": true,
10-
"files.trimTrailingWhitespace": true
10+
"files.trimTrailingWhitespace": true,
11+
"python-envs.defaultEnvManager": "ms-python.python:system",
12+
"python-envs.pythonProjects": []
1113
}

signalsets/v3/default.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"signals": [
6969
{"id": "ID4_OBC_CYCLE_ENERGY", "path": "Battery", "fmt": { "len": 16, "max": 655.35, "div": 100, "unit": "kilowattHours" }, "name": "Cycle energy transformation"}
7070
]},
71-
{ "hdr": "744", "rax": "7AE", "fcm1": true, "dbg": true, "cmd": {"22": "1507"}, "freq": 1,
71+
{ "hdr": "744", "rax": "7AE", "fcm1": true, "cmd": {"22": "1507"}, "freq": 1, "dbgfilter": { "to": 2022, "from": 2024 },
7272
"signals": [
7373
{"id": "ID4_CHRGR_RAIL1_E", "path": "Battery", "fmt": { "len": 24, "max": 1677721, "div": 10, "unit": "kilowattHours" }, "name": "Rail 1 energy transformation"},
7474
{"id": "ID4_CHRGR_RAIL2_E", "path": "Battery", "fmt": {"bix": 24, "len": 24, "max": 1677721, "div": 10, "unit": "kilowattHours" }, "name": "Rail 2 energy transformation"},
@@ -78,19 +78,19 @@
7878
"signals": [
7979
{"id": "ID4_OBC_V_PROX_A", "path": "Battery", "fmt": { "len": 16, "max": 65535, "unit": "millivolts" }, "name": "Voltage proximity, socket a"}
8080
]},
81-
{ "hdr": "744", "rax": "7AE", "fcm1": true, "dbg": true, "cmd": {"22": "15D6"}, "freq": 1,
81+
{ "hdr": "744", "rax": "7AE", "fcm1": true, "cmd": {"22": "15D6"}, "freq": 1, "dbgfilter": { "to": 2022, "from": 2024 },
8282
"signals": [
8383
{"id": "ID4_CHRGR_EFFICIENCY", "path": "Battery", "fmt": { "len": 8, "max": 100.5, "min": 75, "div": 10, "add": 75, "unit": "amps" }, "name": "Power efficiency"}
8484
]},
85-
{ "hdr": "744", "rax": "7AE", "fcm1": true, "dbg": true, "cmd": {"22": "15E2"}, "freq": 1,
85+
{ "hdr": "744", "rax": "7AE", "fcm1": true, "cmd": {"22": "15E2"}, "freq": 1, "dbgfilter": { "to": 2022, "from": 2024 },
8686
"signals": [
8787
{"id": "ID4_CHRGR_COOLANT_T", "path": "Battery", "fmt": { "len": 8, "max": 215, "min": -40, "add": -40, "unit": "celsius" }, "name": "Temperature, Charger coolant"}
8888
]},
89-
{ "hdr": "744", "rax": "7AE", "fcm1": true, "dbg": true, "cmd": {"22": "15EE"}, "freq": 1,
89+
{ "hdr": "744", "rax": "7AE", "fcm1": true, "cmd": {"22": "15EE"}, "freq": 1, "dbgfilter": { "to": 2022, "from": 2024 },
9090
"signals": [
9191
{"id": "ID4_CHRGR_DUR_TOTAL", "path": "Battery", "fmt": { "len": 32, "max": 4294967295, "unit": "minutes" }, "name": "Charging duration total"}
9292
]},
93-
{ "hdr": "744", "rax": "7AE", "fcm1": true, "dbg": true, "cmd": {"22": "1DA7"}, "freq": 1,
93+
{ "hdr": "744", "rax": "7AE", "fcm1": true, "cmd": {"22": "1DA7"}, "freq": 1, "dbgfilter": { "to": 2022, "from": 2024 },
9494
"signals": [
9595
{"id": "ID4_OBC_HIGH_V_OUTPUT", "path": "Battery", "fmt": { "len": 16, "max": 6553.5, "div": 10, "unit": "volts" }, "name": "High voltage output"}
9696
]},
@@ -139,11 +139,11 @@
139139
"signals": [
140140
{"id": "ID4_FRONT_RIGHT_DEFL_T", "path": "Engine", "fmt": { "len": 8, "max": 84.915, "mul": 0.333, "unit": "celsius" }, "name": "Temperature, front right deflector"}
141141
]},
142-
{ "hdr": "746", "rax": "7B0", "fcm1": true, "dbg": true, "cmd": {"22": "2612"}, "freq": 1,
142+
{ "hdr": "746", "rax": "7B0", "fcm1": true, "cmd": {"22": "2612"}, "freq": 1, "dbgfilter": { "to": 2022, "from": 2025 },
143143
"signals": [
144144
{"id": "ID4_HVAC_EVAP_T", "path": "Engine", "fmt": { "len": 16, "max": 3276.7, "min": -3276.8, "div": 10, "sign": true, "unit": "celsius" }, "name": "Temperature, evaporator output"}
145145
]},
146-
{ "hdr": "746", "rax": "7B0", "fcm1": true, "dbg": true, "cmd": {"22": "2613"}, "freq": 1,
146+
{ "hdr": "746", "rax": "7B0", "fcm1": true, "cmd": {"22": "2613"}, "freq": 1, "dbgfilter": { "to": 2022, "from": 2025 },
147147
"signals": [
148148
{"id": "ID4_HVAC_IAT", "path": "Engine", "fmt": { "len": 16, "max": 3276.7, "min": -3276.8, "div": 10, "sign": true, "unit": "celsius" }, "name": "Temperature, interior"}
149149
]},
@@ -176,7 +176,7 @@
176176
"signals": [
177177
{"id": "ID4_REAR_DEFL_T", "path": "Engine", "fmt": { "len": 8, "max": 84.915, "mul": 0.333, "unit": "celsius" }, "name": "Temperature, rear deflector"}
178178
]},
179-
{ "hdr": "746", "rax": "7B0", "fcm1": true, "dbg": true, "cmd": {"22": "26ED"}, "freq": 1,
179+
{ "hdr": "746", "rax": "7B0", "fcm1": true, "cmd": {"22": "26ED"}, "freq": 1, "dbgfilter": { "from": 2026 },
180180
"signals": [
181181
{"id": "ID4_AIR_POLUTION", "path": "Climate", "fmt": { "len": 8, "max": 12.7, "min": -12.7, "div": 10, "sign": true, "unit": "scalar" }, "name": "Air pollution level", "description": "0 means clean air."}
182182
]},
@@ -243,7 +243,7 @@
243243
]},
244244
{ "hdr": "FC00", "rax": "FE0076", "pri": "17", "tst": "76", "dbg": true, "cmd": {"22": "2005"}, "freq": 1,
245245
"signals": [
246-
{"id": "ID4_BRAKE_BOOSTER_P", "path": "Engine", "fmt": { "len": 16, "max": 65.535, "div": 1000, "unit": "bars" }, "name": "Brake booster pressure"}
246+
{"id": "ID4_BRAKE_BOOSTER_P", "path": "Control", "fmt": { "len": 16, "max": 65.535, "div": 1000, "unit": "bars" }, "name": "Brake booster pressure"}
247247
]},
248248
{ "hdr": "FC00", "rax": "FE0076", "pri": "17", "tst": "76", "dbg": true, "cmd": {"22": "2055"}, "freq": 1,
249249
"signals": [
@@ -322,12 +322,12 @@
322322
{"id": "ID4_HVBAT_T_OUT", "path": "Battery", "fmt": { "len": 16, "max": 511, "min": -512, "div": 64, "sign": true, "unit": "celsius" }, "name": "Battery temperature, outlet"},
323323
{"id": "ID4_HVBAT_T_IN", "path": "Battery", "fmt": {"bix": 16, "len": 16, "max": 511, "min": -512, "div": 64, "sign": true, "unit": "celsius" }, "name": "Battery temperature, inlet"}
324324
]},
325-
{ "hdr": "FC00", "rax": "FE007B", "pri": "17", "tst": "7B", "dbg": true, "cmd": {"22": "1E0E"}, "freq": 1,
325+
{ "hdr": "FC00", "rax": "FE007B", "pri": "17", "tst": "7B", "cmd": {"22": "1E0E"}, "freq": 1, "dbgfilter": { "to": 2023, "from": 2025 },
326326
"signals": [
327327
{"id": "ID4_HVBAT_T_MAX", "path": "Battery", "fmt": { "len": 16, "max": 511, "min": -512, "div": 64, "sign": true, "unit": "celsius" }, "name": "Battery temperature, max"},
328328
{"id": "ID4_HVBAT_T_MAX_ID", "path": "Battery", "fmt": {"bix": 16, "len": 16, "max": 65535, "unit": "scalar" }, "name": "Battery temperature, max sensor ID"}
329329
]},
330-
{ "hdr": "FC00", "rax": "FE007B", "pri": "17", "tst": "7B", "dbg": true, "cmd": {"22": "1E0F"}, "freq": 1,
330+
{ "hdr": "FC00", "rax": "FE007B", "pri": "17", "tst": "7B", "cmd": {"22": "1E0F"}, "freq": 1, "dbgfilter": { "to": 2023, "from": 2025 },
331331
"signals": [
332332
{"id": "ID4_HVBAT_T_MIN", "path": "Battery", "fmt": { "len": 16, "max": 511, "min": -512, "div": 64, "sign": true, "unit": "celsius" }, "name": "Battery temperature, min"},
333333
{"id": "ID4_HVBAT_T_MIN_ID", "path": "Battery", "fmt": {"bix": 16, "len": 16, "max": 65535, "unit": "scalar" }, "name": "Battery temperature, min sensor ID"}

tests/test_cases/2023/commands/710.77A.222A53|fc=1.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ test_cases:
3535
response: |-
3636
77A1008622A5393022C
3737
77A2102DAAAAAAAAAAA
38+
- expected_values:
39+
ID4_DCDC_I: 24
40+
ID4_DCDC_I_RSV: 241
41+
ID4_DCDC_V_LOW: 14.8
42+
response: |-
43+
77A1008622A53940217
44+
77A2102F0AAAAAAAAAA
45+
77A100A622AB6008200
46+
77A2182000001AAAAAA
3847
- expected_values:
3948
ID4_DCDC_I: 16
4049
ID4_DCDC_I_RSV: 241

tests/test_cases/2023/commands/710.77A.222AB4|fc=1.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ test_cases:
66
response: |-
77
77A100D622AB4000000
88
77A2179000000000029
9+
- expected_values:
10+
ID4_HVBAT_CSMP_AVG_INT: 41
11+
ID4_RANGE_RESERVE_EST: 208
12+
response: |-
13+
77A100D622AB4000000
14+
77A21D0000000000029
915
- expected_values:
1016
ID4_HVBAT_CSMP_AVG_INT: 40
1117
ID4_RANGE_RESERVE_EST: 218

tests/test_cases/2023/commands/710.77A.222AB5|fc=1.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ test_cases:
55
response: |-
66
77A100D622AB5007900
77
77A2100007900000000
8+
- expected_values:
9+
ID4_RANGE_EST_CAN: 208
10+
response: |-
11+
77A100D622AB500D000
12+
77A210000D000000000
813
- expected_values:
914
ID4_RANGE_EST_CAN: 223
1015
response: |-
1116
77A100D622AB500DF00
1217
77A210000DF00000000
13-
- expected_values:
14-
ID4_RANGE_EST_CAN: 224
15-
response: |-
16-
77A100D622AB500E000
17-
77A210000E000000000
1818
- expected_values:
1919
ID4_RANGE_EST_CAN: 227
2020
response: |-

tests/test_cases/2023/commands/746.7B0.222613|fc=1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ test_cases:
44
ID4_HVAC_IAT: 28.3
55
response: 7B005622613011B
66
- expected_values:
7-
ID4_HVAC_IAT: 32.1
8-
response: 7B0056226130141
7+
ID4_HVAC_IAT: 32.4
8+
response: 7B0056226130144

tests/test_cases/2024/command_support.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ supported_commands_by_ecu:
3838
- DB33.015B:BAT_SOC
3939
- DB33.019A:EHEV_MODE,EHEV_MODE_SUP,HEV_BATT_A,HEV_BATT_A_SUP,HEV_BATT_V,HEV_BATT_V_SUP,HEV_MODE,HEV_MODE_SUP
4040
"FC00":
41+
- FC00.FE0076.220346|ta=76,c=17:ID4_STEER_ANGLE
4142
- FC00.FE0076.223DEF|ta=76,c=17:ID4_SOC
4243
- FC00.FE007B.22028C|ta=7B,c=17:ID4_SOC_DISP
44+
- FC00.FE007B.221E0E|ta=7B,c=17:ID4_HVBAT_T_MAX,ID4_HVBAT_T_MAX_ID
45+
- FC00.FE007B.221E0F|ta=7B,c=17:ID4_HVBAT_T_MIN,ID4_HVBAT_T_MIN_ID
46+
- FC00.FE007B.22F40D|ta=7B,c=17:ID4_VSS
4347
unsupported_commands_by_ecu:
4448
"70B":
4549
- 70B.2218A0
@@ -102,7 +106,10 @@ unsupported_commands_by_ecu:
102106
- 742.7AC.2227D6
103107
- 742.7AC.22475F
104108
"744":
109+
- 744.7AE.22103D|fc=1:ID4_OBC_HVDC_C
110+
- 744.7AE.22103E|fc=1:ID4_OBC_CYCLE_ENERGY
105111
- 744.7AE.221507|fc=1:ID4_CHRGR_RAIL1_E,ID4_CHRGR_RAIL2_E,ID4_CHRGR_RAIL3_E
112+
- 744.7AE.221525|fc=1:ID4_OBC_V_PROX_A
106113
- 744.7AE.221529
107114
- 744.7AE.221553
108115
- 744.7AE.221554
@@ -120,6 +127,7 @@ unsupported_commands_by_ecu:
120127
- 744.7AE.221DA7|fc=1:ID4_OBC_HIGH_V_OUTPUT
121128
- 744.7AE.221DD0
122129
- 744.7AE.221DD3
130+
- 744.7AE.221DDA|fc=1:ID4_OBC_T_A
123131
- 744.7AE.224965
124132
- 744.7AE.22F45B
125133
"746":
@@ -289,3 +297,5 @@ unsupported_commands_by_ecu:
289297
- 7E5.7ED.2251E0
290298
- 7E5.7ED.225200
291299
- 7E5.7ED.22F45B
300+
"FC00":
301+
- FC00.FE007C.22086D|ta=7C,c=17:ID4_ODO

tests/test_cases/2024/commands/710.77A.2215D1|fc=1.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ test_cases:
55
ID4_HV_EM_PWR_LIMITATION: 50
66
response: 77A076215D1010001B9
77
- expected_values:
8-
ID4_HV_EM_NV_PWR_LIMITATION: 9300
8+
ID4_HV_EM_NV_PWR_LIMITATION: 12400
9+
ID4_HV_EM_PWR_LIMITATION: 102450
10+
response: 77A076215D1030801F8
11+
- expected_values:
12+
ID4_HV_EM_NV_PWR_LIMITATION: 10800
13+
ID4_HV_EM_PWR_LIMITATION: 435250
14+
response: 77A076215D1032201D8
15+
- expected_values:
16+
ID4_HV_EM_NV_PWR_LIMITATION: 8600
917
ID4_HV_EM_PWR_LIMITATION: 50
10-
response: 77A076215D1010001BA
18+
response: 77A076215D1050001AC

tests/test_cases/2024/commands/710.77A.222AB2|fc=1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
command_id: 710.77A.222AB2|fc=1
22
test_cases:
3+
- expected_values:
4+
ID4_HVBAT_CAP: 76.75
5+
response: 77A07622AB205FF0400
36
- expected_values:
47
ID4_HVBAT_CAP: 76.95
58
response: 77A07622AB206030400
Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
11
command_id: 710.77A.222AB4|fc=1
22
test_cases:
33
- expected_values:
4-
ID4_HVBAT_CSMP_AVG_INT: 39
5-
ID4_RANGE_RESERVE_EST: 197
4+
ID4_HVBAT_CSMP_AVG_INT: 46
5+
ID4_RANGE_RESERVE_EST: 154
66
response: |-
77
77A100D622AB4000000
8-
77A21C5000000000027
8+
77A219A00000000002E
99
- expected_values:
10-
ID4_HVBAT_CSMP_AVG_INT: 40
11-
ID4_RANGE_RESERVE_EST: 207
10+
ID4_HVBAT_CSMP_AVG_INT: 47
11+
ID4_RANGE_RESERVE_EST: 154
1212
response: |-
1313
77A100D622AB4000000
14-
77A21CF000000000028
14+
77A219A00000000002F
1515
- expected_values:
16-
ID4_HVBAT_CSMP_AVG_INT: 40
17-
ID4_RANGE_RESERVE_EST: 208
16+
ID4_HVBAT_CSMP_AVG_INT: 45
17+
ID4_RANGE_RESERVE_EST: 159
1818
response: |-
1919
77A100D622AB4000000
20-
77A21D0000000000028
20+
77A219F00000000002D
2121
- expected_values:
22-
ID4_HVBAT_CSMP_AVG_INT: 44
23-
ID4_RANGE_RESERVE_EST: 215
22+
ID4_HVBAT_CSMP_AVG_INT: 41
23+
ID4_RANGE_RESERVE_EST: 176
2424
response: |-
2525
77A100D622AB4000000
26-
77A21D700000000002C
26+
77A21B0000000000029
2727
- expected_values:
28-
ID4_HVBAT_CSMP_AVG_INT: 44
29-
ID4_RANGE_RESERVE_EST: 224
28+
ID4_HVBAT_CSMP_AVG_INT: 50
29+
ID4_RANGE_RESERVE_EST: 238
3030
response: |-
3131
77A100D622AB4000000
32-
77A21E000000000002C
32+
77A21EE000000000032
33+
- expected_values:
34+
ID4_HVBAT_CSMP_AVG_INT: 51
35+
ID4_RANGE_RESERVE_EST: 240
36+
response: |-
37+
77A100D622AB4000000
38+
77A21F0000000000033
39+
- expected_values:
40+
ID4_HVBAT_CSMP_AVG_INT: 46
41+
ID4_RANGE_RESERVE_EST: 256
42+
response: |-
43+
77A100D622AB4000001
44+
77A210000000000002E
45+
- expected_values:
46+
ID4_HVBAT_CSMP_AVG_INT: 48
47+
ID4_RANGE_RESERVE_EST: 275
48+
response: |-
49+
77A100D622AB4000001
50+
77A2113000000000030

0 commit comments

Comments
 (0)