Decoded Z27AG signals: layouts in signals.json can blocks, the only source
engine_rpm moves to source z27ag (no OBD-II on this car's CAN). Ten more: accelerator, brake, handbrake, indicators, side lights, dipped beam, doors, A/C compressor. Guideline 6: no service writes a CAN ID of its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
+147
-3
@@ -1,15 +1,24 @@
|
||||
{
|
||||
"$comment": "Single source for signal identity. Topic name and envelope unit are both derived from these entries and are never authored separately. source=obd2 is standardised; source=z27ag is reverse-engineered and lives in the DBC. source=host is the Orin itself (orin-status), not the car.",
|
||||
"$comment": "Single source for signal identity. Topic name and envelope unit are both derived from these entries and are never authored separately. source=obd2 is standardised; source=host is the Orin itself (orin-status), not the car. source=z27ag is reverse-engineered from the car's own broadcast frames, and its 'can' block is the only place its layout is written down: id (11-bit, hex string), byte (first data byte, 0-7), length in bits (1, 8 or 16), bit (length 1 only: 0 = LSB of that byte), order (length 16: big = byte first is most significant, little = the reverse), scale and offset (value = raw * scale + offset; booleans are raw != 0). 'evidence' names the contracts report that found it.",
|
||||
"signals": {
|
||||
"engine_rpm": {
|
||||
"unit": "rpm",
|
||||
"type": "number",
|
||||
"source": "obd2",
|
||||
"source": "z27ag",
|
||||
"description": "Engine speed",
|
||||
"range": [
|
||||
0,
|
||||
8000
|
||||
]
|
||||
],
|
||||
"can": {
|
||||
"id": "0x210",
|
||||
"byte": 4,
|
||||
"length": 16,
|
||||
"order": "big",
|
||||
"scale": 1,
|
||||
"offset": 0,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"vehicle_speed_kph": {
|
||||
"unit": "kph",
|
||||
@@ -91,6 +100,141 @@
|
||||
656
|
||||
]
|
||||
},
|
||||
"accel_pedal_pct": {
|
||||
"unit": "percent",
|
||||
"type": "number",
|
||||
"source": "z27ag",
|
||||
"description": "Accelerator pedal position (0x00 at rest, 0xFA flat)",
|
||||
"range": [
|
||||
0,
|
||||
100
|
||||
],
|
||||
"can": {
|
||||
"id": "0x210",
|
||||
"byte": 0,
|
||||
"length": 8,
|
||||
"scale": 0.4,
|
||||
"offset": 0,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"brake_pedal": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Brake pedal switch: pressed",
|
||||
"can": {
|
||||
"id": "0x231",
|
||||
"byte": 4,
|
||||
"bit": 1,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"handbrake": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Handbrake applied",
|
||||
"can": {
|
||||
"id": "0x239",
|
||||
"byte": 0,
|
||||
"bit": 2,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"indicator_left": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Left indicator lamp, as it flashes (on and off at the flasher's rate)",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 2,
|
||||
"bit": 6,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"indicator_right": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Right indicator lamp, as it flashes. Hazards were seen on the left bit only: open",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 2,
|
||||
"bit": 5,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"side_lights": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Side (position) lights on; also on with dipped beam",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 2,
|
||||
"bit": 2,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"dipped_beam": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Dipped headlights on",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 3,
|
||||
"bit": 1,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"door_open": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Any door open",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 2,
|
||||
"bit": 1,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"driver_door_open": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Driver's door open",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 0,
|
||||
"bit": 4,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"ac_compressor": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "A/C compressor engaged (engine running)",
|
||||
"can": {
|
||||
"id": "0x13D",
|
||||
"byte": 6,
|
||||
"bit": 7,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"orin_cpu_temp_c": {
|
||||
"unit": "celsius",
|
||||
"type": "number",
|
||||
|
||||
Reference in New Issue
Block a user