PEMS Conference. Acquiring Data from In-Vehicle Networks. Rick Walter, P.E. HEM Data Corporation

Similar documents
RA Automotive. Silver Scan-Tool for the testing of OBD functionality. Peter Stoß Senior Manager RA Automotive. Mai 2008

Global OBD Vehicle Communication Software Manual

PC-Based Vehicle OBD Tester

Monitoring fuel consumption on your vehicle in Real-Time

INSTRUMENT PANEL Volvo 850 DESCRIPTION & OPERATION ACCESSORIES & EQUIPMENT Volvo Instrument Panels

1. SAFETY PRECAUTIONS AND WARNINGS

Harrison R&D Houston, TX. OBDScan Manual Version March 22, 2005

Service Manual Trucks

In-Vehicle Networking

ENGINE DIAGNOSTICS & CONTROL

Introduction to Electronic Signals

Signature and ISX CM870 Electronics

DTC Database (OBD-II Trouble Codes)

VEHICLE DIAGNOSTICS THE AUTOCOM WAY

Emissions Readiness Monitor Strategies

ON-Board Diagnostic Trouble Codes

Retrieving and Interpreting Data from Ford Powertrain Control Modules using the Bosch Crash Data Retrieval Tool

Mastertech Diagnostic Software Frequently Asked Questions

The SAE J1939 Communications Network

APPENDIX D PUBLIC AWARENESS INFORMATION

Table of Contents. 1.what is OBD2. 2. Product Information. 1. Safety Precautions and Warnings 1. obd2 was developed by the Califrnia Air Resources

WIFI OBD GPS Tracker T356 User Manual

Volvo Vehicle Communications Software Manual

Road speed limitation for commercial vehicles

Product Information CANalyzer.J1939

Porsche 911, Boxster and Cayman Plug&Play kit

Electronic Diesel Control EDC 16

OBD ll Vehicle Communications. OBD2training.com

EMR 3 CAN BUS specification

Introduction to RACE FUELS Hans-Christian von der Wense Munich, Germany

VeHiCle diagnostics the autocom way

SAS light Check Engine Malfunction Indicator Lamp

ENGINE CONTROLS AND FUEL SYSTEMS

Automotive Sensor Simulator. Automotive sensor simulator. Operating manual. AutoSim

Fault codes DM1. Industrial engines DC09, DC13, DC16. Marine engines DI09, DI13, DI16 INSTALLATION MANUAL. 03:10 Issue 5.0 en-gb 1

CELEBRATING YEARS MARKET LEADERSHIP

AUTOBOSS V30 hand-held diagnostic tool developed for the European market - the true all-in-one scan tool. OEM COVERAGE FOR EUROPEAN/ASIAN/US VEHICLES

Diagnostics Scanner RAC-HP104

Cat Electronic Technician 2015C v1.0 Product Status Report 2/20/2016 4:34 PM

AVL DISCAN Handheld-Scantool for multifunctional fields of application Faultcode-reader with integrated Informationsystem and Oscilloscope

Technical Service BULLETIN

In networking ECUs in heavy-duty vehicles, it is the J1939 protocol that. plays a key role. J1939 networks are based on the CAN bus (high-speed

COMMON RAIL SYSTEM (CRS) SERVICE MANUAL: Operation

Premium Tech Tool: Frequently Asked Question and News Version 1.18 (Released on January 13th, 2015)

V-MAC III Fault Assignments

Note: This information obtained from internet sources and not verified- use at your own risk!!!!

Software Features of Auto Gas Gas Analyzer Features HC, CO, CO2, Lambda, Air Fuel, NOx. Has optional RPM and Oil Temp.

Diagnostic Fault Codes For Cummins Engines

FAULT CODE READER OBD11 FOR PETROL ENGINES PART NO

Final Year Project Report. An Embedded Automotive Monitoring Device. Automon

SmartTrac Stability Control Systems

Intervid Fleet Management Fleet Telematics. Intervid, Inc Pegasus Court, Suite C Frederick, MD 21704

DTC Summaries. V8 AJ26 Engine Management Refer to page 2 for important information regarding the use of this Summary.

Data Mining in Vehicular Sensor Networks: Technical and Marketing Challenges

Adaptive Cruise Control System Overview

Service Information Trucks

M.S Ramaiah School of Advanced Studies - Bangalore. On completion of this session, the delegate will understand and be able to appriciate:

Oregon Fuel Injection

PREPARATION FOR TESTING

Cat Electronic Technician 2015A v1.0 Product Status Report 4/20/2016 2:49 PM

VOLKSWAGEN POWERTRAIN CONTROL SYSTEMS DIAGNOSTICS ONE

Automotive electronics CAN and LIN buses. Copyright 2006 Matrix Multimedia Limited

Hybrid System Overview

Bluetooth in Automotive Applications Lars-Berno Fredriksson, KVASER AB

LAND ROVER FUEL INJECTION SYSTEMS

DTC P0125 Insufficient Coolant Temperature for Closed Loop Fuel Control

Powertrain DTC Summaries EOBD

Table of Contents. Precautions and WarningsUT...1

Bosch Batteries: Optimal Starting Power for All Vehicles

How to Hack Your Mini Cooper: Reverse Engineering CAN Messages on Passenger Automobiles

Trademarks

K-line Communication Description

Driveability Simulation in the continuous development process. Dr. Josef Zehetner, DI Matthias Dank, Dr. Peter Schöggl, AVL List GmbH, Graz

DESCRIPTION. DTC P0351 Ignition Coil "A" Primary / Secondary Circuit. DTC P0352 Ignition Coil "B" Primary / Secondary Circuit

Analysis of Performing Secure Remote Vehicle Diagnostics

DC Motor Driven Throttle Bodies and Control Valves

ECUs and Engine Calibration 201

Fleet Management - Smart, Secure and Easy

Electronically Controlled Air Suspension (ECAS) for Trucks

CrossChasm Embedded Control Systems Whitepaper For Powertrain Design Teams

Technical Service Information

NETWORKS Controller Area Network (CAN)

Diagnostic of off-highway machinery for agriculture

Automated Data Acquisition & Analysis. Revolutionize Validation Testing & Launch With Confidence

ABOUT THE DIAGNOSTIC TOOL

Jing Sun Department of Naval Architecture and Marine Engineering University of Michigan Ann Arbor, MI USA

BMW Multi Tool User Manual

J1939: Opening Up AUTOSAR to the Heavy Vehicle Industry

Diagnostics and Prognostics for Military and Heavy Vehicles

CHASSIS - 4WD SYSTEM. Realizes stable start-off and acceleration performance

Product Information CANdelaStudio

ADRENALINE TRUCK PERFORMANCE

PEUGEOT e-hdi STOP/START TECHNOLOGY MEDIA KIT

Crucial Role of ICT for the Reinvention of the Car

Electronic Power Control

INTRODUCTION. 3 PARTS SUPPLIED. 3 BEFORE YOU BEGIN. 3 CONNECTING THE ECU INTERFACE TO OTHER EQUIPMENT. 11 DATA OUTPUT CHANNELS.

RETAINS STEERING WHEEL CONTROLS, SYNC MEDIA PLAYER, SYNC BLUETOOTH AND MORE!

SSI Technologies TULC Application Note

ECM Diagnosis. Section 11. Learning Objectives:

Transcription:

PEMS Conference Acquiring Data from In-Vehicle Networks Rick Walter, P.E. HEM Data Corporation

Acquiring Data from In-Vehicle Networks Topics Overview/Benefits Heavy Duty J1939 protocol Available J1939 Parameters OBD-II for Light Duty CAN and OBD-II relationship OBD Test Modes / Service IDs

More Topics Required elements to acquire data from the in-vehicle network Database relating parameters to messages Available parameters on your vehicle Sample Rate & Timing Applications Pitfalls / Issues

Overview / Benefits

Data Goldmine Air Bags, HVAC, Power Seats, Power Windows Electronic Power Steering, Anti-Theft Transmission / 4 Wheel Drive Engine Navigation, Telematics Anti-lock braking / Traction Control Emissions Cruise Control Body, Climate, Audio, Keyless Entry Hybrid Powertrain Active Suspension Diagnostics (OBD-II) Traction Smart Junction Box

Benefits of in-vehicle network Wealth of information on the vehicle Sensors, signal conditioning and A/D are standard on the vehicle Controllers share digital data over the network Easy to acquire many parameters without adding hardware Only need to add missing sensors, or none at all!

Heavy Duty Vehicles

Heavy Duty Protocols Older in-vehicle network standards: J1708 for hardware 6 pin adapter J1587 for software Newer / current standard is J1939 Has many subset standards J1939-71 defines J1939 database 9 pin adapter; also includes J1708/1587 protocol Available since year 2000 with CAN protocol More common after 2004

Heavy Duty J939 Database J1939 spec defines almost 2000 possible parameters! HD industry shares information better than LD. Compare messages in file to the master J1939 database and remove messages and parameters (FF or FFFF) that are not there. Vast majority of the parameters we need are broadcast due to normal operation of the vehicle.

Three Components defined in J1939 Message ID Message Priority (first part of 1 st byte) 1 st byte is not really important for data acquisition Parameter Group Number (middle 2 bytes) Critical to know this for data acquisition Source Address (last byte) Always know which controller sent the data

CAN Protocols CAN protocol developed by Bosch in 1980s CAN defines both hardware and software standards. Lowest number CAN ID has highest priority J1939 defines the software and hardware standards J1979 & ISO15765 defines OBD-II ISO14229 defines EOBD

Sample J1939 Message File

J1939 Messages Summary

J1939 Heavy Duty Data

Light Duty Vehicles

OBD Compliant Controller OBD Compliant controllers are: Engine Transmission Hybrid Hybrid Battery All others are non-obd compliant harder to acquire data from non OBD controllers Some non-obd controllers use CAN protocol. Multiple protocols are on a vehicle.

Sample OBD-II (J1979) Parameters From Engine Controller Engine speed, load (absolute & calculated) Vehicle speed Mass Air Flow (MAF) Rate to engine Manifold Air Pressure (MAP) Temperatures: coolant, ambient, catalyst Accelerator pedal and throttle position O 2 sensor data, Lambda (A/F) Fuel trims (long and short term) Diagnostic Trouble Codes (DTCs) Available parameters on a vehicle vary

Data You Can t Get from Standard OBD-II Odometer, Torque ABS, Safety Ride and handling Air bag parameters Hybrid operating parameters (SOC, motor speed/torque) Fuel Consumption from injectors in most cases

OBD-II and CAN Relationship OBD-II is the information the data CAN is one of many protocols to transmit OBD-II data Protocol is like a language Same information can be said in different languages Older LD protocols are J1850, ISO 9141, ISO 14230 Since 2008, CAN must be used for OBD-II data 2004 to 2008 was the transition period to CAN

Acquiring Parameters From the Network To Acquire request filter mask device ID data length acquisition rate data type test mode To Scale and Plot units labels zero offset scaling factor min. value max. value

Automotive OBD-II Test Modes

OBD Test Mode (Mode or Service Request) Test Mode = Service Request = Service ID (SID) Information exchange initiated by the client (test tool) to require diagnostic info from a server (ECU), Or to modify the ECUs behavior for diagnostic purposes.

Test Mode Defines for each test: Purpose (Why) Information (What) Procedure (How) Rate & Priority (When) Controllers Involved (Who)

OBD-II Test Modes (a.k.a. Service Requests) Mode No. Description of Test Mode (Service ID) (Hex) Mode Description of Test Mode (Service ID) No. 01 (Hex) Request Current Powertrain Diagnostic Data (Data Acquisition Mode) 02 1 Request Current Current Powertrain Diagnostic Freeze Frame Data (Data Acquisition Mode) 2 03 Request Current Powertrain Freeze Frame Data Request Emission Related Diagnostic Trouble Codes (DTCs) 3 Request emission related Diagnostic Trouble Codes (DTCs) 04 4 Clear/Reset Emission DTCs Clear/Reset Emission DTCs 05 5 Request Oxygen Sensor Sensor Monitoring Test Test Results Results 6 06 Request On-Board Monitoring for Specific Systems Request On-Board Monitoring for Specific Systems 7 Request Emission-Related DTCs Detected 07 8 Request Emission-Related DTCs Detected Request Control of On-Board System, Test, or Component 08 9 Request Vehicle Control Information of On-Board System, Test, or Component 09 Request Vehicle Information copyright HEM Data Corp. 2005-2013

Enhanced Diagnostics Purpose OBD-II J1979 Enhanced OBD J2190 ISO14229 Data Acquisition 01 21, 22, 23, etc. Freeze Frame 02 12 Trouble Codes 03 13, 17, 18 Clear Trouble Codes 04 14

Automotive CAN Headers Targeted REQUEST = 000007 E0 01 RESPONSE = 000007 E8 41 Priority 7 (low) E0 is a targeted request of the Engine Controller Engine Response is E8 Test Mode $01 Response offset by $40 Broadcast REQUEST = 000007 DF 01 RESPONSE = 000007 E8 41 RESPONSE = 000007 E9 41 DF is a broadcast request E8 is engine controller E9 is transmission controller

Sample OBD-II Message File

Sample Normal Message File

Requirements to Acquire Data from an In-Vehicle Network

How Do I... Acquire data from the invehicle network... Store, retrieve, analyze, and display data on my computer?

Data Acquisition User Wants Think in terms of engineering parameters (rpm, temp., etc.) Isolate user from network message details Acquire as easily as from direct sensors

How to Simplify In-Vehicle Network Data Acquisition Let user select parameters to acquire Have a database for all of the details relating parameters to messages including scaling and message info Let user define acquisition rate

In-Vehicle Data Acquisition SAE J1699 Parameter/Message DAWN Database Determines OBD-II Protocol if unknown Vehicle Interface Tool Application Software J2534 Pass-Thru logger or PC-based User Defined CSV DBC Database Database Editor

Network Database To reword a political expression: It s the database. Database, database, database The key is relating acquired hex messages to engineering parameters

EOBD Scan Tool Limitations Why not use a scan tool? Communicates with just one controller at a time Typical limit is 20 samples/sec/message aggregate Limited plotting and storage of data

LDV OBD-II Parameter Database Relates Messages & Parameters

Resolution Scale Factor is in engineering units / bit This is the best possible resolution Resolution may not be even as good as the scale factor Range of values Is parameter measured or calculated (and what is it dependent on?)

HDV J1939 Parameter Database Relates Messages & Parameters

Sources of Automotive Network Databases 1. OBD-II Diagnostics - (emission related only, around 100 parameter defined, but everyone has access). Must request these diagnostic messages. J1979 standard. (ISO 15031-5) 2. Enhanced Diagnostics (Service) Used by service scan tools. Faster and more complete than OBD-II. Need to request. ISO 14229 standard. (J2190) 3. Normal / Functional - Need OEMs database or reverse engineer. Real-time. No request required. 4. Direct Memory Reads (DMRs) - OEM s internal diagnostic messages. Most complete but hardest to get database. Need request messages. ISO 14229 standard.

Sources of Automotive Network Databases Source Request Available Data Speed Comments 1. OBD-II Diagnostics Yes Easy Generic Emissions related from engine+trans. 20 samples/sec/# of parameters Every tool has. Mode$01 2. Enhanced On-Board Diagnostics (EOBD) Yes Service tools Entire vehicle Access to all ECUs to service them Typically 20 samples/ sec/msg. Up to 250 Hz for an advanced test mode. Complicated, expensive, non-standard. Mode $21/ $22 3. Normal / Functional. Broadcast w/o requesting. 4 Direct Memory Reads (DMRs) No Yes OEM and select suppliers OEM and select suppliers Only data between controllers during normal operation For a specific controller Up to 250 Hz. Determined by vehicle operation per parameter. Up to 250 Hz 1, 2 & 4 are diagnostic data. Easy to use but hard to get. Maybe reverse engineer. Hard to get. Mode $23

J1939 Messages Normal Messages Most J1939 Messages we want are Normal broadcast messages No request message required Same messages used to operate the vehicle Diagnostic Messages need request messages Tend to be slow changing parameters Proprietary messages

Non-OBD Controllers Only engine, transmission and hybrid controllers conform to OBD-II All other controllers are not Less standards; more difficult. Very different procedure for each OEM. Need to know controller ID; not standard Ride and handling; odometer, etc.

Find Available Parameters Just because we have a database of possible parameters doesn t mean our test vehicle has them. How do we know what is available? Trial and error or is there a better way?

Find Available Parameters For OBD-II vehicles only Request PID $00 for a specific mode Vehicle responds with available PIDs, MIDs, TIDs, etc. for the specific application. Use for modes $01, 02, 06, 08, 09 and their enhanced versions

Overcoming Limitations for Sample Rate Maximum acquisition rate for a parameter is defined by the ECU. We can t change this. Example: Vehicle speed is acquired at 1 sample/sec & is only 8 bits for resolution (1kph) Typical transmit rate from an ECU is limited to 20 samples/sec/message aggregate Four OBD-II parameters yields 5 samples/sec for each

Improving Sample Rate Can pack two OBD-II PIDs and sometimes three, to more than double the rate for OBD-II messages Can pack many PIDs into an EOBD message to have all parameters update 20/sec Use a special EOBD high-speed mode defined by OEM, if available Find the equivalent Normal Message Request PIDs at different rates

Sample Data

Sample Engine Data from Network

Shows RPM Source is the Engine Controller not Hybrid Controller

4 Wheels Speeds

Hybrid Engine OBD-II Data

EOBD Hybrid Vehicle Data

Pitfalls from In-Vehicle Network Data taken on faith / some assumptions Parameter measured or derived (and how)? Does it really measure what we need? The right parameter The right location and time What is its amplitude accuracy? What is its timing accuracy? Message sent fast enough? Unknown latency?

Biggest Issue Can I get the database I need to convert the messages to scaled, engineering parameters? What type of database will provide the information I need? 1. OBD-II Diagnostics - J1979 standard. 2. Enhanced Diagnostics (Service) 3. Normal / Functional - Need OEMs database or reverse engineer. Real-time. No request required. 4. Direct Memory Reads (DMRs) - OEM s internal diagnostic messages.

PEMS Conference This presentation is a subset of the SAE Seminar: Acquiring & Analyzing Data From Sensors & In-Vehicle Networks May 1-2, 2014 Troy, MI Rick Walter, P.E. HEM Data Corporation rickw@hemdata.com 248 559-5607 x111