Change signature of decoders
[apps/agl-service-can-low-level.git] / examples / j1939 / j1939_parse.json
1
2 {   "name": "Virtual J1939",
3         "version": "2.0",
4         "extra_sources": [],
5         "initializers": [],
6         "loopers": [],
7         "buses": {},
8         "commands": [],
9         "messages": {
10                 "61442": {
11                         "comment": "Electronic Transmission Controller 1",
12                         "length": 8,
13                         "name": "ETC1",
14                         "bus" : "j1939",
15                         "is_fd" : false,
16                         "is_extended": false,
17                         "is_j1939" : true,
18                         "signals" : {
19                                 "Trns.Trque.Converter.Lockup.Engaged" : {
20                                         "generic_name": "Trns.Trque.Converter.Lockup.Engaged",
21                                         "bit_position": 2,
22                                         "bit_size": 2,
23                                         "factor": 1,
24                                         "offset": 0,
25                                         "comment": "State signal which indicates whether the torque converter lockup is engaged.",
26                                         "is_big_endian": false,
27                                         "is_signed": false,
28                                         "writable" : true,
29                                         "states": {
30                                                 "TorqueConverterLockupDisengaged": [0],
31                                                 "TorqueConverterLockupEngaged": [1],
32                                                 "Error": [2],
33                                                 "NotAvailable": [3]
34                                         }
35                                 },
36                                 "Trns.Trq.Cnvrtr.Lckp.Trnstn.In.Prcess" : {
37                                         "generic_name": "Trns.Trq.Cnvrtr.Lckp.Trnstn.In.Prcess",
38                                         "bit_position": 6,
39                                         "bit_size": 2,
40                                         "factor": 1,
41                                         "offset": 0,
42                                         "comment": "State signal indicating whether or not the transmission torque converter lock up clutch is transitioning between being",
43                                         "is_big_endian": false,
44                                         "is_signed": false,
45                                         "writable" : true,
46                                         "states": {
47                                                 "TransitionIsNotInProcess": [0],
48                                                 "TransitionIsInProcess": [1],
49                                                 "Error": [2],
50                                                 "NotAvailable": [3]
51                                         }
52                                 },
53                                 "Src.Addrss.Of.Ctrllng.Dvc.Fr.Trns.Cntrl" : {
54                                         "generic_name": "Src.Addrss.Of.Ctrllng.Dvc.Fr.Trns.Cntrl",
55                                         "bit_position": 56,
56                                         "bit_size": 8,
57                                         "factor": 1,
58                                         "offset": 0,
59                                         "comment": "The source address of the SAE J1939 device currently controlling the transmission.",
60                                         "is_big_endian": false,
61                                         "is_signed": false,
62                                         "writable" : true
63                                 },
64                                 "Momentary.Eng.Max.Power.Enable" : {
65                                         "generic_name": "Momentary.Eng.Max.Power.Enable",
66                                         "bit_position": 36,
67                                         "bit_size": 2,
68                                         "factor": 1,
69                                         "offset": 0,
70                                         "comment": "Momentarily Requesting highest torque map from the engine control",
71                                         "is_big_endian": false,
72                                         "is_signed": false,
73                                         "writable" : true,
74                                         "states": {
75                                                 "notRqingMaxPowerAvailable": [0],
76                                                 "mmntarilyRqingMaxPowerAvailable": [1],
77                                                 "fault": [2],
78                                                 "notAvailable": [3]
79                                         }
80                                 },
81                                 "Trans.Input.Shaft.Speed" : {
82                                         "generic_name": "Trans.Input.Shaft.Speed",
83                                         "bit_position": 40,
84                                         "bit_size": 16,
85                                         "factor": 0.125,
86                                         "offset": 0,
87                                         "comment": "Rotational velocity of the primary shaft transferring power into the transmission.",
88                                         "unit": "rpm",
89                                         "is_big_endian": false,
90                                         "is_signed": false,
91                                         "writable" : true
92                                 },
93                                 "Progressive.Shift.Disable" : {
94                                         "generic_name": "Progressive.Shift.Disable",
95                                         "bit_position": 34,
96                                         "bit_size": 2,
97                                         "factor": 1,
98                                         "offset": 0,
99                                         "comment": "Command signal used to indicate that progressive shifting by the engine should be disallowed.",
100                                         "is_big_endian": false,
101                                         "is_signed": false,
102                                         "writable" : true,
103                                         "states": {
104                                                 "ProgressiveShiftIsNotDisabled": [0],
105                                                 "ProgressiveShiftIsDisabled": [1],
106                                                 "Reserved": [2],
107                                                 "TakeNoAction": [3]
108                                         }
109                                 },
110                                 "Eng.Momentary.Overspeed.Enable" : {
111                                         "generic_name": "Eng.Momentary.Overspeed.Enable",
112                                         "bit_position": 32,
113                                         "bit_size": 2,
114                                         "factor": 1,
115                                         "offset": 0,
116                                         "comment": "Command signal used to indicate that the engine speed may be boosted up to the maximum engine overspeed value to",
117                                         "is_big_endian": false,
118                                         "is_signed": false,
119                                         "writable" : true,
120                                         "states": {
121                                                 "MomentaryEngOverspeedIsDisabled": [0],
122                                                 "MomentaryEngOverspeedIsEnabled": [1],
123                                                 "Reserved": [2],
124                                                 "TakeNoAction": [3]
125                                         }
126                                 },
127                                 "Percent.Clutch.Slip" : {
128                                         "generic_name": "Percent.Clutch.Slip",
129                                         "bit_position": 24,
130                                         "bit_size": 8,
131                                         "factor": 0.4,
132                                         "offset": 0,
133                                         "comment": "Parameter which represents the ratio of input shaft speed to current engine speed (in percent).",
134                                         "unit": "%",
135                                         "is_big_endian": false,
136                                         "is_signed": false,
137                                         "writable" : true
138                                 },
139                                 "Trans.Output.Shaft.Speed" : {
140                                         "generic_name": "Trans.Output.Shaft.Speed",
141                                         "bit_position": 8,
142                                         "bit_size": 16,
143                                         "factor": 0.125,
144                                         "offset": 0,
145                                         "comment": "Calculated speed of the transmission output shaft.",
146                                         "unit": "rpm",
147                                         "is_big_endian": false,
148                                         "is_signed": false,
149                                         "writable" : true
150                                 },
151                                 "Trans.Shift.In.Process" : {
152                                         "generic_name": "Trans.Shift.In.Process",
153                                         "bit_position": 4,
154                                         "bit_size": 2,
155                                         "factor": 1,
156                                         "offset": 0,
157                                         "comment": "Indicates that the transmission is in process of shifting from the current gear to the selected gear.",
158                                         "is_big_endian": false,
159                                         "is_signed": false,
160                                         "writable" : true,
161                                         "states": {
162                                                 "ShiftIsNotInProcess": [0],
163                                                 "ShiftInProcess": [1],
164                                                 "Error": [2],
165                                                 "NotAvailable": [3]
166                                         }
167                                 },
168                                 "Trans.Driveline.Engaged" : {
169                                         "generic_name": "Trans.Driveline.Engaged",
170                                         "bit_position": 0,
171                                         "bit_size": 2,
172                                         "factor": 1,
173                                         "offset": 0,
174                                         "comment": "Driveline engaged indicates the transmission controlled portion of the driveline is engaged sufficiently to allow a transfer",
175                                         "is_big_endian": false,
176                                         "is_signed": false,
177                                         "writable" : true,
178                                         "states": {
179                                                 "DrivelineDisengaged": [0],
180                                                 "DrivelineEngaged": [1],
181                                                 "Error": [2],
182                                                 "NotAvailable": [3]
183                                         }
184                                 }
185                         }
186                 },
187                 "61444": {
188                         "comment": "Electronic Engine Controller 1",
189                         "length": 8,
190                         "name": "EEC1",
191                         "bus" : "j1939",
192                         "is_fd" : false,
193                         "is_extended": false,
194                         "is_j1939" : true,
195                         "signals" : {
196                                 "Src.AddrssOf.Ctrllng.Dvc.Fr.Eng.Cntrl" : {
197                                         "generic_name": "Src.AddrssOf.Ctrllng.Dvc.Fr.Eng.Cntrl",
198                                         "bit_position": 40,
199                                         "bit_size": 8,
200                                         "factor": 1,
201                                         "offset": 0,
202                                         "comment": "The source address of the SAE J1939 device currently controlling the engine.",
203                                         "is_big_endian": false,
204                                         "is_signed": false
205                                 },
206                                 "Actl.Eng.Prcnt.Trque.High.Resolution" : {
207                                         "generic_name": "Actl.Eng.Prcnt.Trque.High.Resolution",
208                                         "bit_position": 4,
209                                         "bit_size": 4,
210                                         "factor": 0.125,
211                                         "offset": 0,
212                                         "comment": "This parameter displays an additional torque in percent of the reference engine torque.",
213                                         "unit": "%",
214                                         "is_big_endian": false,
215                                         "is_signed": false,
216                                         "states": {
217                                                 "0000": [0],
218                                                 "0125": [1],
219                                                 "0875": [7],
220                                                 "1111NotAvailable": [8]
221                                         }
222                                 },
223                                 "Eng.Demand.Percent.Torque" : {
224                                         "generic_name": "Eng.Demand.Percent.Torque",
225                                         "bit_position": 56,
226                                         "bit_size": 8,
227                                         "factor": 1,
228                                         "offset": -125,
229                                         "comment": "The requested torque output of the engine by all dynamic internal inputs, including smoke control, noise control and low",
230                                         "unit": "%",
231                                         "is_big_endian": false,
232                                         "is_signed": false
233                                 },
234                                 "Eng.Starter.Mode" : {
235                                         "generic_name": "Eng.Starter.Mode",
236                                         "bit_position": 48,
237                                         "bit_size": 4,
238                                         "factor": 1,
239                                         "offset": 0,
240                                         "comment": "There are several phases in a starting action and different reasons why a start cannot take place.",
241                                         "is_big_endian": false,
242                                         "is_signed": false,
243                                         "states": {
244                                                 "startNotRqed": [0],
245                                                 "starterActiveGearNotEngaged": [1],
246                                                 "starterActiveGearEngaged": [2],
247                                                 "strtFnshdStrtrNtActvAftrHvngBnA": [3],
248                                                 "strtrInhbtdDToEngAlreadyRunning": [4],
249                                                 "strtrInhbtdDTEngNtReadyForStart": [5],
250                                                 "strtrInhbtdDTDrvlnEnggdOthrTrns": [6],
251                                                 "strtrInhbtdDToActiveImmobilizer": [7],
252                                                 "strtrInhbtdDueToStarterOvertemp": [8],
253                                                 "1011Reserved": [9],
254                                                 "starterInhibitedReasonUnknown": [12],
255                                                 "error": [14],
256                                                 "notAvailable": [15]
257                                         }
258                                 },
259                                 "Eng.Speed" : {
260                                         "generic_name": "Eng.Speed",
261                                         "bit_position": 24,
262                                         "bit_size": 16,
263                                         "factor": 0.125,
264                                         "offset": 0,
265                                         "comment": "Actual engine speed which is calculated over a minimum crankshaft angle of 720 degrees divided by the number of cylinders.",
266                                         "unit": "rpm",
267                                         "is_big_endian": false,
268                                         "is_signed": false
269                                 },
270                                 "Actual.Eng.Percent.Torque" : {
271                                         "generic_name": "Actual.Eng.Percent.Torque",
272                                         "bit_position": 16,
273                                         "bit_size": 8,
274                                         "factor": 1,
275                                         "offset": -125,
276                                         "comment": "The calculated output torque of the engine.",
277                                         "unit": "%",
278                                         "is_big_endian": false,
279                                         "is_signed": false
280                                 },
281                                 "Drivers.Demand.Eng.Percent.Torque" : {
282                                         "generic_name": "Drivers.Demand.Eng.Percent.Torque",
283                                         "bit_position": 8,
284                                         "bit_size": 8,
285                                         "factor": 1,
286                                         "offset": -125,
287                                         "comment": "The requested torque output of the engine by the driver.",
288                                         "unit": "%",
289                                         "is_big_endian": false,
290                                         "is_signed": false
291                                 },
292                                 "Eng.Torque.Mode" : {
293                                         "generic_name": "Eng.Torque.Mode",
294                                         "bit_position": 0,
295                                         "bit_size": 4,
296                                         "factor": 1,
297                                         "offset": 0,
298                                         "comment": "State signal which indicates which engine torque mode is currently generating, limiting, or controlling the torque.",
299                                         "is_big_endian": false,
300                                         "is_signed": false,
301                                         "states": {
302                                                 "Low idle governor/no request (de": [0],
303                                                 "Accelerator pedal/operator selec": [1],
304                                                 "Cruise control": [2],
305                                                 "PTO governor": [3],
306                                                 "Road speed governor": [4],
307                                                 "ASR control": [5],
308                                                 "Transmission control": [6],
309                                                 "ABS control": [7],
310                                                 "Torque limiting": [8],
311                                                 "High speed governor": [9],
312                                                 "Braking system": [10],
313                                                 "Remote accelerator": [11],
314                                                 "Not available": [15]
315                                         }
316                                 }
317                         }
318                 },
319                 "65253": {
320                         "comment": "Engine Hours, Revolutions",
321                         "length": 8,
322                         "name": "HOURS",
323                         "bus" : "j1939",
324                         "is_fd" : false,
325                         "is_extended": false,
326                         "is_j1939" : true,
327                         "signals" : {
328                                 "Eng.Total.Revolutions" : {
329                                         "generic_name": "Eng.Total.Revolutions",
330                                         "bit_position": 32,
331                                         "bit_size": 32,
332                                         "factor": 1000,
333                                         "offset": 0,
334                                         "comment": "Accumulated number of revolutions of engine crankshaft during its operation.",
335                                         "unit": "r",
336                                         "is_big_endian": false,
337                                         "is_signed": false
338                                 },
339                                 "Eng.Total.Hours.Of.Operation" : {
340                                         "generic_name": "Eng.Total.Hours.Of.Operation",
341                                         "bit_position": 0,
342                                         "bit_size": 32,
343                                         "factor": 0.05,
344                                         "offset": 0,
345                                         "comment": "Accumulated time of operation of engine.",
346                                         "unit": "hr",
347                                         "is_big_endian": false,
348                                         "is_signed": false
349                                 }
350                         }
351                 },
352                 "61449": {
353                         "comment": "Vehicle Dynamic Stability Control 2",
354                         "length": 8,
355                         "name": "VDC2",
356                         "bus" : "j1939",
357                         "is_fd" : false,
358                         "is_extended": false,
359                         "is_j1939" : true,
360                         "signals" : {
361                                 "Steer.Wheel.Angle" : {
362                                         "generic_name": "Steer.Wheel.Angle",
363                                         "bit_position": 0,
364                                         "bit_size": 16,
365                                         "factor": 0.0009765625,
366                                         "offset": -31.374,
367                                         "comment": "The main operator`s steering wheel angle (on the steering column, not the actual wheel angle).",
368                                         "unit": "rad",
369                                         "is_big_endian": false,
370                                         "is_signed": false
371                                 },
372                                 "Longitudinal.Acceleration" : {
373                                         "generic_name": "Longitudinal.Acceleration",
374                                         "bit_position": 56,
375                                         "bit_size": 8,
376                                         "factor": 0.1,
377                                         "offset": -12.5,
378                                         "comment": "Indicates the longitudinal acceleration of the vehicle.",
379                                         "unit": "m/s/s",
380                                         "is_big_endian": false,
381                                         "is_signed": false
382                                 },
383                                 "Lateral.Acceleration" : {
384                                         "generic_name": "Lateral.Acceleration",
385                                         "bit_position": 40,
386                                         "bit_size": 16,
387                                         "factor": 0.00048828125,
388                                         "offset": -15.687,
389                                         "comment": "Indicates a lateral acceleration of the vehicle.",
390                                         "unit": "m/s/s",
391                                         "is_big_endian": false,
392                                         "is_signed": false
393                                 },
394                                 "Yaw.Rate" : {
395                                         "generic_name": "Yaw.Rate",
396                                         "bit_position": 24,
397                                         "bit_size": 16,
398                                         "factor": 0.0001220703125,
399                                         "offset": -3.92,
400                                         "comment": "Indicates the rotation about the vertical axis.",
401                                         "unit": "rad/s",
402                                         "is_big_endian": false,
403                                         "is_signed": false
404                                 },
405                                 "Steer.Wheel.Angle.Sensor.Type" : {
406                                         "generic_name": "Steer.Wheel.Angle.Sensor.Type",
407                                         "bit_position": 22,
408                                         "bit_size": 2,
409                                         "factor": 1,
410                                         "offset": 0,
411                                         "comment": "Indicates whether the steering wheel angle sensor is capable of absolute measuring of the number of steering wheel",
412                                         "is_big_endian": false,
413                                         "is_signed": false,
414                                         "states": {
415                                                 "RelativeMeasuringPrinciple": [0],
416                                                 "AbsMeasuringPrinciple": [1],
417                                                 "Reserved": [2],
418                                                 "NotAvailable": [3]
419                                         }
420                                 },
421                                 "Steer.Wheel.Turn.Counter" : {
422                                         "generic_name": "Steer.Wheel.Turn.Counter",
423                                         "bit_position": 16,
424                                         "bit_size": 6,
425                                         "factor": 1,
426                                         "offset": -32,
427                                         "comment": "Indicates number of steering wheel turns, absolute position or relative position at ignition on.",
428                                         "unit": "turns",
429                                         "is_big_endian": false,
430                                         "is_signed": false
431                                 }
432                         }
433                 },
434                 "65215": {
435                         "comment": "Wheel Speed Information",
436                         "length": 8,
437                         "name": "EBC2",
438                         "bus" : "j1939",
439                         "is_fd" : false,
440                         "is_extended": false,
441                         "is_j1939" : true,
442                         "signals" : {
443                                 "Rlative.Speed.Rear.Axle2.Right.Wheel" : {
444                                         "generic_name": "Rlative.Speed.Rear.Axle2.Right.Wheel",
445                                         "bit_position": 56,
446                                         "bit_size": 8,
447                                         "factor": 0.0625,
448                                         "offset": -7.8125,
449                                         "comment": "The speed of the rear axle #2, right wheel relative to the front axle speed, SPN 904.",
450                                         "unit": "km/h",
451                                         "is_big_endian": false,
452                                         "is_signed": false
453                                 },
454                                 "Relative.Speed.Rear.Axle2.Left.Wheel" : {
455                                         "generic_name": "Relative.Speed.Rear.Axle2.Left.Wheel",
456                                         "bit_position": 48,
457                                         "bit_size": 8,
458                                         "factor": 0.0625,
459                                         "offset": -7.8125,
460                                         "comment": "The speed of the rear axle #2, left wheel relative to the front axle speed, SPN 904.",
461                                         "unit": "km/h",
462                                         "is_big_endian": false,
463                                         "is_signed": false
464                                 },
465                                 "Rlative.Speed.Rear.Axle1.Right.Wheel" : {
466                                         "generic_name": "Rlative.Speed.Rear.Axle1.Right.Wheel",
467                                         "bit_position": 40,
468                                         "bit_size": 8,
469                                         "factor": 0.0625,
470                                         "offset": -7.8125,
471                                         "comment": "The speed of the rear axle #1, right wheel relative to the front axle speed, SPN 904.",
472                                         "unit": "km/h",
473                                         "is_big_endian": false,
474                                         "is_signed": false
475                                 },
476                                 "Relative.Speed.Rear.Axle1.Left.Wheel" : {
477                                         "generic_name": "Relative.Speed.Rear.Axle1.Left.Wheel",
478                                         "bit_position": 32,
479                                         "bit_size": 8,
480                                         "factor": 0.0625,
481                                         "offset": -7.8125,
482                                         "comment": "The speed of the rear axle #1, left wheel relative to the front axle speed, SPN 904.",
483                                         "unit": "km/h",
484                                         "is_big_endian": false,
485                                         "is_signed": false
486                                 },
487                                 "Rlative.Speed.Front.Axle.Right.Wheel" : {
488                                         "generic_name": "Rlative.Speed.Front.Axle.Right.Wheel",
489                                         "bit_position": 24,
490                                         "bit_size": 8,
491                                         "factor": 0.0625,
492                                         "offset": -7.8125,
493                                         "comment": "The speed of the front axle, right wheel relative to the front axle speed, SPN 904.",
494                                         "unit": "km/h",
495                                         "is_big_endian": false,
496                                         "is_signed": false
497                                 },
498                                 "Relative.Speed.Front.Axle.Left.Wheel" : {
499                                         "generic_name": "Relative.Speed.Front.Axle.Left.Wheel",
500                                         "bit_position": 16,
501                                         "bit_size": 8,
502                                         "factor": 0.0625,
503                                         "offset": -7.8125,
504                                         "comment": "The speed of the front axle, left wheel relative to the front axle speed, SPN 904.",
505                                         "unit": "km/h",
506                                         "is_big_endian": false,
507                                         "is_signed": false
508                                 },
509                                 "Front.Axle.Speed" : {
510                                         "generic_name": "Front.Axle.Speed",
511                                         "bit_position": 0,
512                                         "bit_size": 16,
513                                         "factor": 0.00390625,
514                                         "offset": 0,
515                                         "comment": "The average speed of the two front wheels.",
516                                         "unit": "km/h",
517                                         "is_big_endian": false,
518                                         "is_signed": false
519                                 }
520                         }
521                 },
522                 "65262": {
523                         "comment": "Engine Temperature 1",
524                         "length": 8,
525                         "name": "ET1",
526                         "bus" : "j1939",
527                         "is_fd" : false,
528                         "is_extended": false,
529                         "is_j1939" : true,
530                         "signals" : {
531                                 "Eng.Fuel.Temp1" : {
532                                         "generic_name": "Eng.Fuel.Temp1",
533                                         "bit_position": 8,
534                                         "bit_size": 8,
535                                         "factor": 1,
536                                         "offset": -40,
537                                         "comment": "Temperature of fuel (or gas) passing through the first fuel control system.",
538                                         "unit": "deg C",
539                                         "is_big_endian": false,
540                                         "is_signed": false
541                                 },
542                                 "Eng.Intercooler.Thermostat.Opening" : {
543                                         "generic_name": "Eng.Intercooler.Thermostat.Opening",
544                                         "bit_position": 56,
545                                         "bit_size": 8,
546                                         "factor": 0.4,
547                                         "offset": 0,
548                                         "comment": "The current position of the thermostat used to regulate the temperature of the engine intercooler.",
549                                         "unit": "%",
550                                         "is_big_endian": false,
551                                         "is_signed": false
552                                 },
553                                 "Eng.Intercooler.Temp" : {
554                                         "generic_name": "Eng.Intercooler.Temp",
555                                         "bit_position": 48,
556                                         "bit_size": 8,
557                                         "factor": 1,
558                                         "offset": -40,
559                                         "comment": "Temperature of liquid found in the intercooler located after the turbocharger.",
560                                         "unit": "deg C",
561                                         "is_big_endian": false,
562                                         "is_signed": false
563                                 },
564                                 "Eng.Turbo.Oil.Temp" : {
565                                         "generic_name": "Eng.Turbo.Oil.Temp",
566                                         "bit_position": 32,
567                                         "bit_size": 16,
568                                         "factor": 0.03125,
569                                         "offset": -273,
570                                         "comment": "Temperature of the turbocharger lubricant.",
571                                         "unit": "deg C",
572                                         "is_big_endian": false,
573                                         "is_signed": false
574                                 },
575                                 "Eng.Oil.Temp1" : {
576                                         "generic_name": "Eng.Oil.Temp1",
577                                         "bit_position": 16,
578                                         "bit_size": 16,
579                                         "factor": 0.03125,
580                                         "offset": -273,
581                                         "comment": "Temperature of the engine lubricant.",
582                                         "unit": "deg C",
583                                         "is_big_endian": false,
584                                         "is_signed": false
585                                 },
586                                 "Eng.Coolant.Temp" : {
587                                         "generic_name": "Eng.Coolant.Temp",
588                                         "bit_position": 0,
589                                         "bit_size": 8,
590                                         "factor": 0.03125,
591                                         "offset": -273,
592                                         "comment": "Temperature of liquid found in engine cooling system.",
593                                         "unit": "deg C",
594                                         "is_big_endian": false,
595                                         "is_signed": false
596                                 }
597                         }
598                 }
599         }
600 }