-
Notifications
You must be signed in to change notification settings - Fork 0
/
can_messages.asciipb
519 lines (474 loc) · 8.01 KB
/
can_messages.asciipb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
# Message Definitions in plaintext are on the wiki at:
# https://uwmidsun.atlassian.net/wiki/spaces/ELEC/pages/50003973/CAN+Message+Definitions
#
# If you are making changes to this file please update the corresponding entry
# on the wiki. If you need to add a new message use a reasonable
# reserved ID. The higher ID the lower the priority. Generally
# - 0-13: Critical messages (have ACK)
# - 14-30: Actionable messages (trigger a change in another system)
# - 30-63: Data messages (usually not actionable by an onboard device)
msg {
id: 0
source: PLUTUS
# target: CHAOS, LIGHTS
msg_name: "bps heartbeat"
is_critical: true
can_data {
u8 {
field_name_1: "status"
}
}
}
msg {
id: 1
source: CHAOS
# target: Driver Controls
msg_name: "power distribution fault"
is_critical: true
can_data {
u8 {
field_name_1: "reason"
}
}
}
msg {
id: 2
source: CHAOS
# target: PLUTUS
msg_name: "battery relay main"
is_critical: true
can_data {
u8 {
field_name_1: "relay_state"
}
}
}
msg {
id: 3
source: CHAOS
# target: PLUTUS
msg_name: "battery relay slave"
is_critical: true
can_data {
u8 {
field_name_1: "relay_state"
}
}
}
msg {
id: 4
source: CHAOS
# target: MOTOR_INTERFACE
msg_name: "motor relay"
is_critical: true
can_data {
u8 {
field_name_1: "relay_state"
}
}
}
msg {
id: 5
source: CHAOS
# target: SOLAR_MASTER_REAR
msg_name: "solar relay rear"
is_critical: true
can_data {
u8 {
field_name_1: "relay_state"
}
}
}
msg {
id: 6
source: CHAOS
# target: SOLAR_MASTER_FRONT
msg_name: "solar relay front"
is_critical: true
can_data {
u8 {
field_name_1: "relay_state"
}
}
}
msg {
id: 7
source: DRIVER_CONTROLS
# target: CHAOS
msg_name: "power state"
is_critical: true
can_data {
u8 {
field_name_1: "power_state"
}
}
}
msg {
id: 8
source: CHAOS
# target: PLUTUS, MOTOR_CONTROLLER, DRIVER_CONTROLS
msg_name: "powertrain heartbeat"
is_critical: true
can_data {
empty {
}
}
}
# IDs: 9-15 Reserved
msg {
id: 16
source: CHAOS
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "ovuv dcdc aux"
msg_readable_name: "ov uv dcdc and aux bat"
can_data {
u8 {
field_name_1: "dcdc_ov_flag"
field_name_2: "dcdc_uv_flag"
field_name_3: "aux_bat_ov_flag"
field_name_4: "aux_bat_uv_flag"
}
}
}
msg {
id: 17
source: MOTOR_CONTROLLER
# target: TELEMETRY
msg_name: "mc error limits"
msg_readable_name: "motor controller error and limits"
can_data {
u16 {
field_name_1: "error_id"
field_name_2: "limits"
}
}
}
msg {
id: 18
source: DRIVER_CONTROLS
# target: MOTOR_INTERFACE
msg_name: "drive output"
can_data {
u16 {
field_name_1: "throttle"
field_name_2: "direction"
field_name_3: "cruise_control"
field_name_4: "mechanical_brake_state"
}
}
}
msg {
id: 19
source: DRIVER_CONTROLS
# target: DRIVER_DISPLAY
msg_name: "cruise_target"
can_data {
u8 {
field_name_1: "target speed"
}
}
}
msg {
id: 20
source: CHAOS
# target PLUTUS
msg_name: "fan_control"
can_data {
u8 {
field_name_1: "state"
}
}
}
msg {
id: 21
source: TELEMETRY
# target: PLUTUS
msg_name: "set_discharge_bitset"
can_data {
u64 {
field_name_1: "discharge_bitset"
}
}
}
msg {
id: 22
source: PLUTUS
# target: TELEMETRY
msg_name: "discharge_state"
can_data {
u64 {
field_name_1: "discharge_bitset"
}
}
}
msg {
id: 23
source: LIGHTS_REAR
# target: LIGHTS_FRONT
msg_name: "lights sync"
can_data {
empty {
}
}
}
msg {
id: 24
source: DRIVER_CONTROLS
# target: LIGHTS
msg_name: "lights state"
can_data {
u8 {
field_name_1: "light_id"
field_name_2: "light_state"
}
}
}
msg {
id: 25
source: DRIVER_CONTROLS
# target: LIGHTS
msg_name: "horn"
can_data {
u8 {
field_name_1: "state"
}
}
}
msg {
id: 26
source: CHARGER
# target: CHAOS
msg_name: "charger conn state"
msg_readable_name: "charger connection state"
can_data {
u8 {
field_name_1: "is_connected"
}
}
}
msg {
id: 27
source: CHAOS
# target: CHARGER
msg_name: "charger set relay state"
can_data {
u8 {
field_name_1: "state"
}
}
}
msg {
id: 28
source: DRIVER_CONTROLS
# target: TELEMETRY
msg_name: "steering angle"
can_data {
u16 {
field_name_1: "steering_angle"
}
}
}
# IDs: 29-30 Reserved
msg {
id: 31
source: PLUTUS
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "battery soc"
can_data {
empty {
}
}
}
msg {
id: 32
source: PLUTUS
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "battery vt"
msg_readable_name: "battery voltage temperature"
can_data {
u16 {
field_name_1: "module_id"
field_name_2: "voltage"
field_name_3: "temperature"
}
}
}
msg {
id: 33
source: PLUTUS
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "battery aggregate vc"
msg_readable_name: "battery aggregate voltage and current"
can_data {
u32 {
field_name_1: "voltage"
field_name_2: "current"
}
}
}
# IDs: 34 Reserved
msg {
id: 35
source: MOTOR_CONTROLLER
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "motor controller vc"
msg_readable_name: "motor controller voltage current"
can_data {
u16 {
field_name_1: "mc_voltage_1"
field_name_2: "mc_current_1"
field_name_3: "mc_voltage_2"
field_name_4: "mc_current_2"
}
}
}
msg {
id: 36
source: MOTOR_CONTROLLER
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "motor velocity"
can_data {
u16 {
field_name_1: "vehicle_velocity_left"
field_name_2: "vehicle_velocity_right"
}
}
}
msg {
id: 37
source: MOTOR_CONTROLLER
# target: TELEMETRY
msg_name: "motor debug"
can_data {
u64 {
field_name_1: "data"
}
}
}
msg {
id: 38
source: MOTOR_CONTROLLER
# target: TELEMETRY
msg_name: "motor temps"
can_data {
u32 {
field_name_1: "motor_temp_l"
field_name_2: "motor_temp_r"
}
}
}
msg {
id: 39
source: MOTOR_CONTROLLER
# target: TELEMETRY
msg_name: "motor amp hr"
can_data {
u32 {
field_name_1: "motor_amp_hr_l"
field_name_2: "motor_amp_hr_r"
}
}
}
msg {
id: 40
source: MOTOR_CONTROLLER
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "odometer"
can_data {
u32 {
field_name_1: "odometer_val"
}
}
}
# IDs: 41-42 Reserved
msg {
id: 43
source: CHAOS
# target: TELEMETRY
msg_name: "aux dcdc vc"
msg_readable_name: "aux bat and dcdc voltage current"
can_data {
u16 {
field_name_1: "aux_voltage"
field_name_2: "aux_current"
field_name_3: "dcdc_voltage"
field_name_4: "dcdc_current"
}
}
}
msg {
id: 44
source: CHAOS
# target: TELEMETRY
msg_name: "dcdc temps"
can_data {
u16 {
field_name_1: "temp_1"
field_name_2: "temp_2"
}
}
}
msg {
id: 45
source: SOLAR_MASTER_FRONT
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "solar data front"
can_data {
u16 {
field_name_1: "module_id"
field_name_2: "voltage"
field_name_3: "current"
field_name_4: "temperature"
}
}
}
msg {
id: 46
source: SOLAR_MASTER_REAR
# target: DRIVER_DISPLAY, TELEMETRY
msg_name: "solar data rear"
can_data {
u16 {
field_name_1: "module_id"
field_name_2: "voltage"
field_name_3: "current"
field_name_4: "temperature"
}
}
}
msg {
id: 47
source: CHARGER
# target: telemetry
msg_name: "charger info"
can_data {
u16 {
field_name_1: "current"
field_name_2: "voltage"
field_name_3: "status_bitset"
}
}
}
# IDs: 47-50 Reserved
msg {
id: 51
source: SENSOR_BOARD
# target: TELEMETRY
msg_name: "linear acceleration"
can_data {
empty {
}
}
}
msg {
id: 52
source: SENSOR_BOARD
# target: TELEMETRY
msg_name: "angular rotation"
can_data {
empty {
}
}
}
# IDs: 53-63 Reserved
# No ID may exceed 63.