Update examples and can_samples
[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_fd" : false,
15                         "is_extended": 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_extended": false,
193                         "is_j1939" : true,
194                         "signals" : {
195                                 "Src.AddrssOf.Ctrllng.Dvc.Fr.Eng.Cntrl" : {
196                                         "generic_name": "Src.AddrssOf.Ctrllng.Dvc.Fr.Eng.Cntrl",
197                                         "bit_position": 40,
198                                         "bit_size": 8,
199                                         "factor": 1,
200                                         "offset": 0,
201                                         "comment": "The source address of the SAE J1939 device currently controlling the engine.",
202                                         "is_big_endian": false,
203                                         "is_signed": false
204                                 },
205                                 "Actl.Eng.Prcnt.Trque.High.Resolution" : {
206                                         "generic_name": "Actl.Eng.Prcnt.Trque.High.Resolution",
207                                         "bit_position": 4,
208                                         "bit_size": 4,
209                                         "factor": 0.125,
210                                         "offset": 0,
211                                         "comment": "This parameter displays an additional torque in percent of the reference engine torque.",
212                                         "unit": "%",
213                                         "is_big_endian": false,
214                                         "is_signed": false,
215                                         "states": {
216                                                 "0000": [0],
217                                                 "0125": [1],
218                                                 "0875": [7],
219                                                 "1111NotAvailable": [8]
220                                         }
221                                 },
222                                 "Eng.Demand.Percent.Torque" : {
223                                         "generic_name": "Eng.Demand.Percent.Torque",
224                                         "bit_position": 56,
225                                         "bit_size": 8,
226                                         "factor": 1,
227                                         "offset": -125,
228                                         "comment": "The requested torque output of the engine by all dynamic internal inputs, including smoke control, noise control and low",
229                                         "unit": "%",
230                                         "is_big_endian": false,
231                                         "is_signed": false
232                                 },
233                                 "Eng.Starter.Mode" : {
234                                         "generic_name": "Eng.Starter.Mode",
235                                         "bit_position": 48,
236                                         "bit_size": 4,
237                                         "factor": 1,
238                                         "offset": 0,
239                                         "comment": "There are several phases in a starting action and different reasons why a start cannot take place.",
240                                         "is_big_endian": false,
241                                         "is_signed": false,
242                                         "states": {
243                                                 "startNotRqed": [0],
244                                                 "starterActiveGearNotEngaged": [1],
245                                                 "starterActiveGearEngaged": [2],
246                                                 "strtFnshdStrtrNtActvAftrHvngBnA": [3],
247                                                 "strtrInhbtdDToEngAlreadyRunning": [4],
248                                                 "strtrInhbtdDTEngNtReadyForStart": [5],
249                                                 "strtrInhbtdDTDrvlnEnggdOthrTrns": [6],
250                                                 "strtrInhbtdDToActiveImmobilizer": [7],
251                                                 "strtrInhbtdDueToStarterOvertemp": [8],
252                                                 "1011Reserved": [9],
253                                                 "starterInhibitedReasonUnknown": [12],
254                                                 "error": [14],
255                                                 "notAvailable": [15]
256                                         }
257                                 },
258                                 "Eng.Speed" : {
259                                         "generic_name": "Eng.Speed",
260                                         "bit_position": 24,
261                                         "bit_size": 16,
262                                         "factor": 0.125,
263                                         "offset": 0,
264                                         "comment": "Actual engine speed which is calculated over a minimum crankshaft angle of 720 degrees divided by the number of cylinders.",
265                                         "unit": "rpm",
266                                         "is_big_endian": false,
267                                         "is_signed": false
268                                 },
269                                 "Actual.Eng.Percent.Torque" : {
270                                         "generic_name": "Actual.Eng.Percent.Torque",
271                                         "bit_position": 16,
272                                         "bit_size": 8,
273                                         "factor": 1,
274                                         "offset": -125,
275                                         "comment": "The calculated output torque of the engine.",
276                                         "unit": "%",
277                                         "is_big_endian": false,
278                                         "is_signed": false
279                                 },
280                                 "Drivers.Demand.Eng.Percent.Torque" : {
281                                         "generic_name": "Drivers.Demand.Eng.Percent.Torque",
282                                         "bit_position": 8,
283                                         "bit_size": 8,
284                                         "factor": 1,
285                                         "offset": -125,
286                                         "comment": "The requested torque output of the engine by the driver.",
287                                         "unit": "%",
288                                         "is_big_endian": false,
289                                         "is_signed": false
290                                 },
291                                 "Eng.Torque.Mode" : {
292                                         "generic_name": "Eng.Torque.Mode",
293                                         "bit_position": 0,
294                                         "bit_size": 4,
295                                         "factor": 1,
296                                         "offset": 0,
297                                         "comment": "State signal which indicates which engine torque mode is currently generating, limiting, or controlling the torque.",
298                                         "is_big_endian": false,
299                                         "is_signed": false,
300                                         "states": {
301                                                 "Low idle governor/no request (de": [0],
302                                                 "Accelerator pedal/operator selec": [1],
303                                                 "Cruise control": [2],
304                                                 "PTO governor": [3],
305                                                 "Road speed governor": [4],
306                                                 "ASR control": [5],
307                                                 "Transmission control": [6],
308                                                 "ABS control": [7],
309                                                 "Torque limiting": [8],
310                                                 "High speed governor": [9],
311                                                 "Braking system": [10],
312                                                 "Remote accelerator": [11],
313                                                 "Not available": [15]
314                                         }
315                                 }
316                         }
317                 },
318                 "65253": {
319                         "comment": "Engine Hours, Revolutions",
320                         "length": 8,
321                         "name": "HOURS",
322                         "bus" : "j1939",
323                         "is_fd" : false,
324                         "is_extended": false,
325                         "is_j1939" : true,
326                         "signals" : {
327                                 "Eng.Total.Revolutions" : {
328                                         "generic_name": "Eng.Total.Revolutions",
329                                         "bit_position": 32,
330                                         "bit_size": 32,
331                                         "factor": 1000,
332                                         "offset": 0,
333                                         "comment": "Accumulated number of revolutions of engine crankshaft during its operation.",
334                                         "unit": "r",
335                                         "is_big_endian": false,
336                                         "is_signed": false
337                                 },
338                                 "Eng.Total.Hours.Of.Operation" : {
339                                         "generic_name": "Eng.Total.Hours.Of.Operation",
340                                         "bit_position": 0,
341                                         "bit_size": 32,
342                                         "factor": 0.05,
343                                         "offset": 0,
344                                         "comment": "Accumulated time of operation of engine.",
345                                         "unit": "hr",
346                                         "is_big_endian": false,
347                                         "is_signed": false
348                                 }
349                         }
350                 },
351                 "61449": {
352                         "comment": "Vehicle Dynamic Stability Control 2",
353                         "length": 8,
354                         "name": "VDC2",
355                         "bus" : "j1939",
356                         "is_fd" : false,
357                         "is_extended": false,
358                         "is_j1939" : true,
359                         "signals" : {
360                                 "Steer.Wheel.Angle" : {
361                                         "generic_name": "Steer.Wheel.Angle",
362                                         "bit_position": 0,
363                                         "bit_size": 16,
364                                         "factor": 0.0009765625,
365                                         "offset": -31.374,
366                                         "comment": "The main operator`s steering wheel angle (on the steering column, not the actual wheel angle).",
367                                         "unit": "rad",
368                                         "is_big_endian": false,
369                                         "is_signed": false
370                                 },
371                                 "Longitudinal.Acceleration" : {
372                                         "generic_name": "Longitudinal.Acceleration",
373                                         "bit_position": 56,
374                                         "bit_size": 8,
375                                         "factor": 0.1,
376                                         "offset": -12.5,
377                                         "comment": "Indicates the longitudinal acceleration of the vehicle.",
378                                         "unit": "m/s/s",
379                                         "is_big_endian": false,
380                                         "is_signed": false
381                                 },
382                                 "Lateral.Acceleration" : {
383                                         "generic_name": "Lateral.Acceleration",
384                                         "bit_position": 40,
385                                         "bit_size": 16,
386                                         "factor": 0.00048828125,
387                                         "offset": -15.687,
388                                         "comment": "Indicates a lateral acceleration of the vehicle.",
389                                         "unit": "m/s/s",
390                                         "is_big_endian": false,
391                                         "is_signed": false
392                                 },
393                                 "Yaw.Rate" : {
394                                         "generic_name": "Yaw.Rate",
395                                         "bit_position": 24,
396                                         "bit_size": 16,
397                                         "factor": 0.0001220703125,
398                                         "offset": -3.92,
399                                         "comment": "Indicates the rotation about the vertical axis.",
400                                         "unit": "rad/s",
401                                         "is_big_endian": false,
402                                         "is_signed": false
403                                 },
404                                 "Steer.Wheel.Angle.Sensor.Type" : {
405                                         "generic_name": "Steer.Wheel.Angle.Sensor.Type",
406                                         "bit_position": 22,
407                                         "bit_size": 2,
408                                         "factor": 1,
409                                         "offset": 0,
410                                         "comment": "Indicates whether the steering wheel angle sensor is capable of absolute measuring of the number of steering wheel",
411                                         "is_big_endian": false,
412                                         "is_signed": false,
413                                         "states": {
414                                                 "RelativeMeasuringPrinciple": [0],
415                                                 "AbsMeasuringPrinciple": [1],
416                                                 "Reserved": [2],
417                                                 "NotAvailable": [3]
418                                         }
419                                 },
420                                 "Steer.Wheel.Turn.Counter" : {
421                                         "generic_name": "Steer.Wheel.Turn.Counter",
422                                         "bit_position": 16,
423                                         "bit_size": 6,
424                                         "factor": 1,
425                                         "offset": -32,
426                                         "comment": "Indicates number of steering wheel turns, absolute position or relative position at ignition on.",
427                                         "unit": "turns",
428                                         "is_big_endian": false,
429                                         "is_signed": false
430                                 }
431                         }
432                 },
433                 "65215": {
434                         "comment": "Wheel Speed Information",
435                         "length": 8,
436                         "name": "EBC2",
437                         "bus" : "j1939",
438                         "is_fd" : false,
439                         "is_extended": false,
440                         "is_j1939" : true,
441                         "signals" : {
442                                 "Rlative.Speed.Rear.Axle2.Right.Wheel" : {
443                                         "generic_name": "Rlative.Speed.Rear.Axle2.Right.Wheel",
444                                         "bit_position": 56,
445                                         "bit_size": 8,
446                                         "factor": 0.0625,
447                                         "offset": -7.8125,
448                                         "comment": "The speed of the rear axle #2, right wheel relative to the front axle speed, SPN 904.",
449                                         "unit": "km/h",
450                                         "is_big_endian": false,
451                                         "is_signed": false
452                                 },
453                                 "Relative.Speed.Rear.Axle2.Left.Wheel" : {
454                                         "generic_name": "Relative.Speed.Rear.Axle2.Left.Wheel",
455                                         "bit_position": 48,
456                                         "bit_size": 8,
457                                         "factor": 0.0625,
458                                         "offset": -7.8125,
459                                         "comment": "The speed of the rear axle #2, left wheel relative to the front axle speed, SPN 904.",
460                                         "unit": "km/h",
461                                         "is_big_endian": false,
462                                         "is_signed": false
463                                 },
464                                 "Rlative.Speed.Rear.Axle1.Right.Wheel" : {
465                                         "generic_name": "Rlative.Speed.Rear.Axle1.Right.Wheel",
466                                         "bit_position": 40,
467                                         "bit_size": 8,
468                                         "factor": 0.0625,
469                                         "offset": -7.8125,
470                                         "comment": "The speed of the rear axle #1, right wheel relative to the front axle speed, SPN 904.",
471                                         "unit": "km/h",
472                                         "is_big_endian": false,
473                                         "is_signed": false
474                                 },
475                                 "Relative.Speed.Rear.Axle1.Left.Wheel" : {
476                                         "generic_name": "Relative.Speed.Rear.Axle1.Left.Wheel",
477                                         "bit_position": 32,
478                                         "bit_size": 8,
479                                         "factor": 0.0625,
480                                         "offset": -7.8125,
481                                         "comment": "The speed of the rear axle #1, left wheel relative to the front axle speed, SPN 904.",
482                                         "unit": "km/h",
483                                         "is_big_endian": false,
484                                         "is_signed": false
485                                 },
486                                 "Rlative.Speed.Front.Axle.Right.Wheel" : {
487                                         "generic_name": "Rlative.Speed.Front.Axle.Right.Wheel",
488                                         "bit_position": 24,
489                                         "bit_size": 8,
490                                         "factor": 0.0625,
491                                         "offset": -7.8125,
492                                         "comment": "The speed of the front axle, right wheel relative to the front axle speed, SPN 904.",
493                                         "unit": "km/h",
494                                         "is_big_endian": false,
495                                         "is_signed": false
496                                 },
497                                 "Relative.Speed.Front.Axle.Left.Wheel" : {
498                                         "generic_name": "Relative.Speed.Front.Axle.Left.Wheel",
499                                         "bit_position": 16,
500                                         "bit_size": 8,
501                                         "factor": 0.0625,
502                                         "offset": -7.8125,
503                                         "comment": "The speed of the front axle, left wheel relative to the front axle speed, SPN 904.",
504                                         "unit": "km/h",
505                                         "is_big_endian": false,
506                                         "is_signed": false
507                                 },
508                                 "Front.Axle.Speed" : {
509                                         "generic_name": "Front.Axle.Speed",
510                                         "bit_position": 0,
511                                         "bit_size": 16,
512                                         "factor": 0.00390625,
513                                         "offset": 0,
514                                         "comment": "The average speed of the two front wheels.",
515                                         "unit": "km/h",
516                                         "is_big_endian": false,
517                                         "is_signed": false
518                                 }
519                         }
520                 },
521                 "65262": {
522                         "comment": "Engine Temperature 1",
523                         "length": 8,
524                         "name": "ET1",
525                         "bus" : "j1939",
526                         "is_fd" : false,
527                         "is_extended": false,
528                         "is_j1939" : true,
529                         "signals" : {
530                                 "Eng.Fuel.Temp1" : {
531                                         "generic_name": "Eng.Fuel.Temp1",
532                                         "bit_position": 8,
533                                         "bit_size": 8,
534                                         "factor": 1,
535                                         "offset": -40,
536                                         "comment": "Temperature of fuel (or gas) passing through the first fuel control system.",
537                                         "unit": "deg C",
538                                         "is_big_endian": false,
539                                         "is_signed": false
540                                 },
541                                 "Eng.Intercooler.Thermostat.Opening" : {
542                                         "generic_name": "Eng.Intercooler.Thermostat.Opening",
543                                         "bit_position": 56,
544                                         "bit_size": 8,
545                                         "factor": 0.4,
546                                         "offset": 0,
547                                         "comment": "The current position of the thermostat used to regulate the temperature of the engine intercooler.",
548                                         "unit": "%",
549                                         "is_big_endian": false,
550                                         "is_signed": false
551                                 },
552                                 "Eng.Intercooler.Temp" : {
553                                         "generic_name": "Eng.Intercooler.Temp",
554                                         "bit_position": 48,
555                                         "bit_size": 8,
556                                         "factor": 1,
557                                         "offset": -40,
558                                         "comment": "Temperature of liquid found in the intercooler located after the turbocharger.",
559                                         "unit": "deg C",
560                                         "is_big_endian": false,
561                                         "is_signed": false
562                                 },
563                                 "Eng.Turbo.Oil.Temp" : {
564                                         "generic_name": "Eng.Turbo.Oil.Temp",
565                                         "bit_position": 32,
566                                         "bit_size": 16,
567                                         "factor": 0.03125,
568                                         "offset": -273,
569                                         "comment": "Temperature of the turbocharger lubricant.",
570                                         "unit": "deg C",
571                                         "is_big_endian": false,
572                                         "is_signed": false
573                                 },
574                                 "Eng.Oil.Temp1" : {
575                                         "generic_name": "Eng.Oil.Temp1",
576                                         "bit_position": 16,
577                                         "bit_size": 16,
578                                         "factor": 0.03125,
579                                         "offset": -273,
580                                         "comment": "Temperature of the engine lubricant.",
581                                         "unit": "deg C",
582                                         "is_big_endian": false,
583                                         "is_signed": false
584                                 },
585                                 "Eng.Coolant.Temp" : {
586                                         "generic_name": "Eng.Coolant.Temp",
587                                         "bit_position": 0,
588                                         "bit_size": 8,
589                                         "factor": 0.03125,
590                                         "offset": -273,
591                                         "comment": "Temperature of liquid found in engine cooling system.",
592                                         "unit": "deg C",
593                                         "is_big_endian": false,
594                                         "is_signed": false
595                                 }
596                         }
597                 }
598         }
599 }