summaryrefslogtreecommitdiffstats
path: root/examples/j1939/j1939_parse.json
blob: 3896acba778ad467abb4fa4a2afd42d289e2a6d1 (plain)
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
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
{   "name": "Virtual J1939",
	"version": "2.0",
	"extra_sources": [],
	"initializers": [],
	"loopers": [],
	"buses": {},
	"commands": [],
	"messages": {
		"61442": {
			"comment": "Electronic Transmission Controller 1",
			"length": 8,
			"name": "ETC1",
			"bus" : "j1939",
			"is_fd" : false,
			"is_extended": false,
			"is_j1939" : true,
			"signals" : {
				"Trns.Trque.Converter.Lockup.Engaged" : {
					"generic_name": "Trns.Trque.Converter.Lockup.Engaged",
					"bit_position": 2,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "State signal which indicates whether the torque converter lockup is engaged.",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true,
					"states": {
						"TorqueConverterLockupDisengaged": [0],
						"TorqueConverterLockupEngaged": [1],
						"Error": [2],
						"NotAvailable": [3]
					}
				},
				"Trns.Trq.Cnvrtr.Lckp.Trnstn.In.Prcess" : {
					"generic_name": "Trns.Trq.Cnvrtr.Lckp.Trnstn.In.Prcess",
					"bit_position": 6,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "State signal indicating whether or not the transmission torque converter lock up clutch is transitioning between being",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true,
					"states": {
						"TransitionIsNotInProcess": [0],
						"TransitionIsInProcess": [1],
						"Error": [2],
						"NotAvailable": [3]
					}
				},
				"Src.Addrss.Of.Ctrllng.Dvc.Fr.Trns.Cntrl" : {
					"generic_name": "Src.Addrss.Of.Ctrllng.Dvc.Fr.Trns.Cntrl",
					"bit_position": 56,
					"bit_size": 8,
					"factor": 1,
					"offset": 0,
					"comment": "The source address of the SAE J1939 device currently controlling the transmission.",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true
				},
				"Momentary.Eng.Max.Power.Enable" : {
					"generic_name": "Momentary.Eng.Max.Power.Enable",
					"bit_position": 36,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "Momentarily Requesting highest torque map from the engine control",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true,
					"states": {
						"notRqingMaxPowerAvailable": [0],
						"mmntarilyRqingMaxPowerAvailable": [1],
						"fault": [2],
						"notAvailable": [3]
					}
				},
				"Trans.Input.Shaft.Speed" : {
					"generic_name": "Trans.Input.Shaft.Speed",
					"bit_position": 40,
					"bit_size": 16,
					"factor": 0.125,
					"offset": 0,
					"comment": "Rotational velocity of the primary shaft transferring power into the transmission.",
					"unit": "rpm",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true
				},
				"Progressive.Shift.Disable" : {
					"generic_name": "Progressive.Shift.Disable",
					"bit_position": 34,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "Command signal used to indicate that progressive shifting by the engine should be disallowed.",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true,
					"states": {
						"ProgressiveShiftIsNotDisabled": [0],
						"ProgressiveShiftIsDisabled": [1],
						"Reserved": [2],
						"TakeNoAction": [3]
					}
				},
				"Eng.Momentary.Overspeed.Enable" : {
					"generic_name": "Eng.Momentary.Overspeed.Enable",
					"bit_position": 32,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "Command signal used to indicate that the engine speed may be boosted up to the maximum engine overspeed value to",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true,
					"states": {
						"MomentaryEngOverspeedIsDisabled": [0],
						"MomentaryEngOverspeedIsEnabled": [1],
						"Reserved": [2],
						"TakeNoAction": [3]
					}
				},
				"Percent.Clutch.Slip" : {
					"generic_name": "Percent.Clutch.Slip",
					"bit_position": 24,
					"bit_size": 8,
					"factor": 0.4,
					"offset": 0,
					"comment": "Parameter which represents the ratio of input shaft speed to current engine speed (in percent).",
					"unit": "%",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true
				},
				"Trans.Output.Shaft.Speed" : {
					"generic_name": "Trans.Output.Shaft.Speed",
					"bit_position": 8,
					"bit_size": 16,
					"factor": 0.125,
					"offset": 0,
					"comment": "Calculated speed of the transmission output shaft.",
					"unit": "rpm",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true
				},
				"Trans.Shift.In.Process" : {
					"generic_name": "Trans.Shift.In.Process",
					"bit_position": 4,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "Indicates that the transmission is in process of shifting from the current gear to the selected gear.",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true,
					"states": {
						"ShiftIsNotInProcess": [0],
						"ShiftInProcess": [1],
						"Error": [2],
						"NotAvailable": [3]
					}
				},
				"Trans.Driveline.Engaged" : {
					"generic_name": "Trans.Driveline.Engaged",
					"bit_position": 0,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "Driveline engaged indicates the transmission controlled portion of the driveline is engaged sufficiently to allow a transfer",
					"is_big_endian": false,
					"is_signed": false,
					"writable" : true,
					"states": {
						"DrivelineDisengaged": [0],
						"DrivelineEngaged": [1],
						"Error": [2],
						"NotAvailable": [3]
					}
				}
			}
		},
		"61444": {
			"comment": "Electronic Engine Controller 1",
			"length": 8,
			"name": "EEC1",
			"bus" : "j1939",
			"is_fd" : false,
			"is_extended": false,
			"is_j1939" : true,
			"signals" : {
				"Src.AddrssOf.Ctrllng.Dvc.Fr.Eng.Cntrl" : {
					"generic_name": "Src.AddrssOf.Ctrllng.Dvc.Fr.Eng.Cntrl",
					"bit_position": 40,
					"bit_size": 8,
					"factor": 1,
					"offset": 0,
					"comment": "The source address of the SAE J1939 device currently controlling the engine.",
					"is_big_endian": false,
					"is_signed": false
				},
				"Actl.Eng.Prcnt.Trque.High.Resolution" : {
					"generic_name": "Actl.Eng.Prcnt.Trque.High.Resolution",
					"bit_position": 4,
					"bit_size": 4,
					"factor": 0.125,
					"offset": 0,
					"comment": "This parameter displays an additional torque in percent of the reference engine torque.",
					"unit": "%",
					"is_big_endian": false,
					"is_signed": false,
					"states": {
						"0000": [0],
						"0125": [1],
						"0875": [7],
						"1111NotAvailable": [8]
					}
				},
				"Eng.Demand.Percent.Torque" : {
					"generic_name": "Eng.Demand.Percent.Torque",
					"bit_position": 56,
					"bit_size": 8,
					"factor": 1,
					"offset": -125,
					"comment": "The requested torque output of the engine by all dynamic internal inputs, including smoke control, noise control and low",
					"unit": "%",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Starter.Mode" : {
					"generic_name": "Eng.Starter.Mode",
					"bit_position": 48,
					"bit_size": 4,
					"factor": 1,
					"offset": 0,
					"comment": "There are several phases in a starting action and different reasons why a start cannot take place.",
					"is_big_endian": false,
					"is_signed": false,
					"states": {
						"startNotRqed": [0],
						"starterActiveGearNotEngaged": [1],
						"starterActiveGearEngaged": [2],
						"strtFnshdStrtrNtActvAftrHvngBnA": [3],
						"strtrInhbtdDToEngAlreadyRunning": [4],
						"strtrInhbtdDTEngNtReadyForStart": [5],
						"strtrInhbtdDTDrvlnEnggdOthrTrns": [6],
						"strtrInhbtdDToActiveImmobilizer": [7],
						"strtrInhbtdDueToStarterOvertemp": [8],
						"1011Reserved": [9],
						"starterInhibitedReasonUnknown": [12],
						"error": [14],
						"notAvailable": [15]
					}
				},
				"Eng.Speed" : {
					"generic_name": "Eng.Speed",
					"bit_position": 24,
					"bit_size": 16,
					"factor": 0.125,
					"offset": 0,
					"comment": "Actual engine speed which is calculated over a minimum crankshaft angle of 720 degrees divided by the number of cylinders.",
					"unit": "rpm",
					"is_big_endian": false,
					"is_signed": false
				},
				"Actual.Eng.Percent.Torque" : {
					"generic_name": "Actual.Eng.Percent.Torque",
					"bit_position": 16,
					"bit_size": 8,
					"factor": 1,
					"offset": -125,
					"comment": "The calculated output torque of the engine.",
					"unit": "%",
					"is_big_endian": false,
					"is_signed": false
				},
				"Drivers.Demand.Eng.Percent.Torque" : {
					"generic_name": "Drivers.Demand.Eng.Percent.Torque",
					"bit_position": 8,
					"bit_size": 8,
					"factor": 1,
					"offset": -125,
					"comment": "The requested torque output of the engine by the driver.",
					"unit": "%",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Torque.Mode" : {
					"generic_name": "Eng.Torque.Mode",
					"bit_position": 0,
					"bit_size": 4,
					"factor": 1,
					"offset": 0,
					"comment": "State signal which indicates which engine torque mode is currently generating, limiting, or controlling the torque.",
					"is_big_endian": false,
					"is_signed": false,
					"states": {
						"Low idle governor/no request (de": [0],
						"Accelerator pedal/operator selec": [1],
						"Cruise control": [2],
						"PTO governor": [3],
						"Road speed governor": [4],
						"ASR control": [5],
						"Transmission control": [6],
						"ABS control": [7],
						"Torque limiting": [8],
						"High speed governor": [9],
						"Braking system": [10],
						"Remote accelerator": [11],
						"Not available": [15]
					}
				}
			}
		},
		"65253": {
			"comment": "Engine Hours, Revolutions",
			"length": 8,
			"name": "HOURS",
			"bus" : "j1939",
			"is_fd" : false,
			"is_extended": false,
			"is_j1939" : true,
			"signals" : {
				"Eng.Total.Revolutions" : {
					"generic_name": "Eng.Total.Revolutions",
					"bit_position": 32,
					"bit_size": 32,
					"factor": 1000,
					"offset": 0,
					"comment": "Accumulated number of revolutions of engine crankshaft during its operation.",
					"unit": "r",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Total.Hours.Of.Operation" : {
					"generic_name": "Eng.Total.Hours.Of.Operation",
					"bit_position": 0,
					"bit_size": 32,
					"factor": 0.05,
					"offset": 0,
					"comment": "Accumulated time of operation of engine.",
					"unit": "hr",
					"is_big_endian": false,
					"is_signed": false
				}
			}
		},
		"61449": {
			"comment": "Vehicle Dynamic Stability Control 2",
			"length": 8,
			"name": "VDC2",
			"bus" : "j1939",
			"is_fd" : false,
			"is_extended": false,
			"is_j1939" : true,
			"signals" : {
				"Steer.Wheel.Angle" : {
					"generic_name": "Steer.Wheel.Angle",
					"bit_position": 0,
					"bit_size": 16,
					"factor": 0.0009765625,
					"offset": -31.374,
					"comment": "The main operator`s steering wheel angle (on the steering column, not the actual wheel angle).",
					"unit": "rad",
					"is_big_endian": false,
					"is_signed": false
				},
				"Longitudinal.Acceleration" : {
					"generic_name": "Longitudinal.Acceleration",
					"bit_position": 56,
					"bit_size": 8,
					"factor": 0.1,
					"offset": -12.5,
					"comment": "Indicates the longitudinal acceleration of the vehicle.",
					"unit": "m/s/s",
					"is_big_endian": false,
					"is_signed": false
				},
				"Lateral.Acceleration" : {
					"generic_name": "Lateral.Acceleration",
					"bit_position": 40,
					"bit_size": 16,
					"factor": 0.00048828125,
					"offset": -15.687,
					"comment": "Indicates a lateral acceleration of the vehicle.",
					"unit": "m/s/s",
					"is_big_endian": false,
					"is_signed": false
				},
				"Yaw.Rate" : {
					"generic_name": "Yaw.Rate",
					"bit_position": 24,
					"bit_size": 16,
					"factor": 0.0001220703125,
					"offset": -3.92,
					"comment": "Indicates the rotation about the vertical axis.",
					"unit": "rad/s",
					"is_big_endian": false,
					"is_signed": false
				},
				"Steer.Wheel.Angle.Sensor.Type" : {
					"generic_name": "Steer.Wheel.Angle.Sensor.Type",
					"bit_position": 22,
					"bit_size": 2,
					"factor": 1,
					"offset": 0,
					"comment": "Indicates whether the steering wheel angle sensor is capable of absolute measuring of the number of steering wheel",
					"is_big_endian": false,
					"is_signed": false,
					"states": {
						"RelativeMeasuringPrinciple": [0],
						"AbsMeasuringPrinciple": [1],
						"Reserved": [2],
						"NotAvailable": [3]
					}
				},
				"Steer.Wheel.Turn.Counter" : {
					"generic_name": "Steer.Wheel.Turn.Counter",
					"bit_position": 16,
					"bit_size": 6,
					"factor": 1,
					"offset": -32,
					"comment": "Indicates number of steering wheel turns, absolute position or relative position at ignition on.",
					"unit": "turns",
					"is_big_endian": false,
					"is_signed": false
				}
			}
		},
		"65215": {
			"comment": "Wheel Speed Information",
			"length": 8,
			"name": "EBC2",
			"bus" : "j1939",
			"is_fd" : false,
			"is_extended": false,
			"is_j1939" : true,
			"signals" : {
				"Rlative.Speed.Rear.Axle2.Right.Wheel" : {
					"generic_name": "Rlative.Speed.Rear.Axle2.Right.Wheel",
					"bit_position": 56,
					"bit_size": 8,
					"factor": 0.0625,
					"offset": -7.8125,
					"comment": "The speed of the rear axle #2, right wheel relative to the front axle speed, SPN 904.",
					"unit": "km/h",
					"is_big_endian": false,
					"is_signed": false
				},
				"Relative.Speed.Rear.Axle2.Left.Wheel" : {
					"generic_name": "Relative.Speed.Rear.Axle2.Left.Wheel",
					"bit_position": 48,
					"bit_size": 8,
					"factor": 0.0625,
					"offset": -7.8125,
					"comment": "The speed of the rear axle #2, left wheel relative to the front axle speed, SPN 904.",
					"unit": "km/h",
					"is_big_endian": false,
					"is_signed": false
				},
				"Rlative.Speed.Rear.Axle1.Right.Wheel" : {
					"generic_name": "Rlative.Speed.Rear.Axle1.Right.Wheel",
					"bit_position": 40,
					"bit_size": 8,
					"factor": 0.0625,
					"offset": -7.8125,
					"comment": "The speed of the rear axle #1, right wheel relative to the front axle speed, SPN 904.",
					"unit": "km/h",
					"is_big_endian": false,
					"is_signed": false
				},
				"Relative.Speed.Rear.Axle1.Left.Wheel" : {
					"generic_name": "Relative.Speed.Rear.Axle1.Left.Wheel",
					"bit_position": 32,
					"bit_size": 8,
					"factor": 0.0625,
					"offset": -7.8125,
					"comment": "The speed of the rear axle #1, left wheel relative to the front axle speed, SPN 904.",
					"unit": "km/h",
					"is_big_endian": false,
					"is_signed": false
				},
				"Rlative.Speed.Front.Axle.Right.Wheel" : {
					"generic_name": "Rlative.Speed.Front.Axle.Right.Wheel",
					"bit_position": 24,
					"bit_size": 8,
					"factor": 0.0625,
					"offset": -7.8125,
					"comment": "The speed of the front axle, right wheel relative to the front axle speed, SPN 904.",
					"unit": "km/h",
					"is_big_endian": false,
					"is_signed": false
				},
				"Relative.Speed.Front.Axle.Left.Wheel" : {
					"generic_name": "Relative.Speed.Front.Axle.Left.Wheel",
					"bit_position": 16,
					"bit_size": 8,
					"factor": 0.0625,
					"offset": -7.8125,
					"comment": "The speed of the front axle, left wheel relative to the front axle speed, SPN 904.",
					"unit": "km/h",
					"is_big_endian": false,
					"is_signed": false
				},
				"Front.Axle.Speed" : {
					"generic_name": "Front.Axle.Speed",
					"bit_position": 0,
					"bit_size": 16,
					"factor": 0.00390625,
					"offset": 0,
					"comment": "The average speed of the two front wheels.",
					"unit": "km/h",
					"is_big_endian": false,
					"is_signed": false
				}
			}
		},
		"65262": {
			"comment": "Engine Temperature 1",
			"length": 8,
			"name": "ET1",
			"bus" : "j1939",
			"is_fd" : false,
			"is_extended": false,
			"is_j1939" : true,
			"signals" : {
				"Eng.Fuel.Temp1" : {
					"generic_name": "Eng.Fuel.Temp1",
					"bit_position": 8,
					"bit_size": 8,
					"factor": 1,
					"offset": -40,
					"comment": "Temperature of fuel (or gas) passing through the first fuel control system.",
					"unit": "deg C",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Intercooler.Thermostat.Opening" : {
					"generic_name": "Eng.Intercooler.Thermostat.Opening",
					"bit_position": 56,
					"bit_size": 8,
					"factor": 0.4,
					"offset": 0,
					"comment": "The current position of the thermostat used to regulate the temperature of the engine intercooler.",
					"unit": "%",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Intercooler.Temp" : {
					"generic_name": "Eng.Intercooler.Temp",
					"bit_position": 48,
					"bit_size": 8,
					"factor": 1,
					"offset": -40,
					"comment": "Temperature of liquid found in the intercooler located after the turbocharger.",
					"unit": "deg C",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Turbo.Oil.Temp" : {
					"generic_name": "Eng.Turbo.Oil.Temp",
					"bit_position": 32,
					"bit_size": 16,
					"factor": 0.03125,
					"offset": -273,
					"comment": "Temperature of the turbocharger lubricant.",
					"unit": "deg C",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Oil.Temp1" : {
					"generic_name": "Eng.Oil.Temp1",
					"bit_position": 16,
					"bit_size": 16,
					"factor": 0.03125,
					"offset": -273,
					"comment": "Temperature of the engine lubricant.",
					"unit": "deg C",
					"is_big_endian": false,
					"is_signed": false
				},
				"Eng.Coolant.Temp" : {
					"generic_name": "Eng.Coolant.Temp",
					"bit_position": 0,
					"bit_size": 8,
					"factor": 0.03125,
					"offset": -273,
					"comment": "Temperature of liquid found in engine cooling system.",
					"unit": "deg C",
					"is_big_endian": false,
					"is_signed": false
				}
			}
		}
	}
}