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