OBD2 diagnostic trouble codes (DTCs) and freeze frame data are emulated using STM32/HAL.
Play with Service 09 to get familiar with CAN-TP (ISO-TP). Play with Service 01 to get familiar with vehicle parameter streaming.
Don't worry 🙂 Just hit Alt-K to generate /Drivers/CMCIS/ and /Drivers/STM32G4xx_HAL_Driver/ based on the .ioc file. After a couple of seconds your project will be ready for building.
- OBD-II PIDs (Wikipedia)
- Example 3: OBD2 Diagnostic Trouble Codes (DTCs) (CSS Electronics)
- OBD-II Trouble Codes
- Find your OBD-II Trouble Code (RepairPal)
- Getting Started with CAN Bus Sniffing / What Can I See via the OBD Port? (Dauntless Devices)
- Unlocking On-Board diagnostics: A Guide to OBD 2 Protocol (Embien Technologies)
- A handbook of OBD modes and services (Embitel)
- OBD Diagnostic Service (Mode) $02 - Request Powertrain Freeze Frame Data1 (x-engineer)
- OBD Diagnostic Service (Mode) $03 - Request emission-related diagnostic trouble codes (DTCs) (x-engineer)
- OBD Diagnostic Service (Mode) $04 - Clear/reset emission-related diagnostic information (x-engineer)
Create your own home laboratory/workshop/garage! Get inspired by ControllersTech, DroneBot Workshop, Andreas Spiess, GreatScott!, ElectroBOOM, Phil's Lab, atomic14, That Project, Paul McWhorter, RS Elektronika, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them!
Warning
Control engineering - do try this at home ❗
190+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.
Stay tuned!
Footnotes
-
Saved me a lot of time 🙃 ↩




