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