Add UDS protocol support (ISO 14229) for ECU emulator

Implement UDS Service 0x22 (Read Data By Identifier) with support for:
- Engine ECU (0x7E0): boost pressure, fuel rail pressure, lambda, torque,
  wastegate position, ignition timing, knock correction per cylinder
- DSG Transmission (0x7E1): current gear, selector position, oil temp
- Instrument Cluster (0x714): RPM, ambient light sensor

Also adds ECU_EMULATOR_SPEC.md with full protocol documentation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 16:28:55 +03:00
parent 69acad18ca
commit 2ec05d2e9d
11 changed files with 1843 additions and 25 deletions

View File

@@ -33,6 +33,7 @@ class VehicleConfig(BaseModel):
idle_rpm: int = Field(default=850, ge=600, le=1200)
max_rpm: int = Field(default=6500, ge=4000, le=9000)
redline_rpm: int = Field(default=6000, ge=3500, le=8500)
max_torque_nm: float = Field(default=350.0, ge=100, le=800, description="Max torque in Nm")
# Температуры
ambient_temp: float = Field(default=20.0, ge=-40, le=50)