Deep Memory Automotive Data Logger Adolph Seema Paul Kurucz
Motivation Paul’s idea Paul’s idea
Presentation Plan Description of the project. Description of the project. System Breakdown System Breakdown User Profile Software & System Design Constraints Hardware-Software Interface Hardware-Software Interface - OBD-II setup - OSI-9141 and SAE-J Logging structure.
System Description Modern vehicles contain a myriad of sensors. Modern vehicles contain a myriad of sensors. Sensors are monitored by the engine control unit (ECU) to determine the status of the vehicle’s critical systems such as engine speed, coolant temperature, fuel pressure and intake air density. Sensors are monitored by the engine control unit (ECU) to determine the status of the vehicle’s critical systems such as engine speed, coolant temperature, fuel pressure and intake air density. Most vehicles since 1996 have On-Board Diagnostic (OBD-II) connector. Most vehicles since 1996 have On-Board Diagnostic (OBD-II) connector. Service Engine Soon light?
Goal Design and implement a data logger that communicates with the ECU via the OBD-II connector. Use the Dell Axim TM X5 PDA as the data logger and the user interface between the OBD-II and the user. Data logged should be compressed into a Compact Flash that could be read by a Linux station through the flash reader.
The Compact Flash Reader and the PDA
Flash Reader and PDA Cont… The reader accepts six types of flash media The reader accepts six types of flash media Compact Flash, Smart Media, Secure Digital, Memory Stick, Micro Driver and MMC multimedia card. The Dell PDA accepts three types of flash media The Dell PDA accepts three types of flash media Compact Flash, Secure Digital and MMC multimedia card
System Components PDA is the primary system controller that provides the data logging and compression services along with the user interface. PDA is the primary system controller that provides the data logging and compression services along with the user interface. The RS232 to OBD-II interface converter contains a PIC micro-controller and electrical interface circuitry. The RS232 to OBD-II interface converter contains a PIC micro-controller and electrical interface circuitry. The interface converter allows the PDA to communicate with vehicles that use each of the three different physical layer protocols, while only using one command set and baud rate. The interface converter allows the PDA to communicate with vehicles that use each of the three different physical layer protocols, while only using one command set and baud rate.
User Profile After everything is connected and working After everything is connected and working
Three protocols possible to be implemented.
Choosing sensors to be logged and vehicle. If we have time we will create a “database” of a few vehicles
Choosing specific log settings.
Secondary functionality If we have time we will create a “database” of a few vehicles DTC description
Basic OBD-II Modes Nine (9) modes Nine (9) modes Mode 1 Mode 1 Vehicle speed, RPM, fuel system status, O 2 sensor voltages, temperatures and timing advance. Mode 2 Mode 2 A snapshot of mode 1 settings when a trouble code condition occurred Mode 3 Mode 3 Retrieves powertrain trouble codes (P codes) from the ECU. The ECU may not respond if there are no trouble codes present. Mode 4 Mode 4 Clears all diagnostic and trouble code data.
Basic OBD-II Modes Mode 5 Mode 5 O 2 sensor test results on some vehicles. Mode 6 Mode 6 Non-continuously monitored test results. Mode 7 Mode 7 Continuously monitored test results. Mode 8 Mode 8 Requests control of on-board devices. Not well defined Mode 9 Mode 9 Reports VIN # and calibration constants.
Software & System Design Constraints Primarily Microsoft embedded Visual C++ (eVC++) for the GUI, C for basic libraries. Primarily Microsoft embedded Visual C++ (eVC++) for the GUI, C for basic libraries.
Software System Diagram
Formatting GUI requests Two types Two types Scheduler Request Format Query format QF|________| ModePID SRF |________||________||________||________| ModePIDIntervalsSample Count The Query Format Primarily for Secondary functionality
PDA Resources The Dell Axim TM X5 PDA has: The Dell Axim TM X5 PDA has: Built in 32 MB of Flash 32 MB of built-in RAM 2 external flash storages including 2 external flash storages including The Compact Flash, which can go up to 3GB We have 2 128MB Compact Flashes.
APPENDIX [1] OBD II Interface Chip Data Sheet For PWM, VPW, and ISO Vehicles [2] ODB Notes. A collection of a few fact on OBD-II [3] INTERNATIONAL STANDARD IS First edition [4] INTERNATIONAL STANDARD IS First edition [5] SAE International, SURFACE VEHICLE STANDARD J1979 REV. APR2002 [6] miniLZO Resource Center, [7] Microsoft Developer Network, MSDN, us/vcsample/html/vcorivisualcsamplesportal.asp [8] Circuit Cellular, [9] Stanford University Fact [10] eMbedded Development Ultimate Information Site, 2001, eVC++ Tutorial, Daniel Lehtovirta us/vcsample/html/vcorivisualcsamplesportal.asp Daniel Lehtovirtahttp://
Question Time