Implementation and Validation of K Line (ISO 9141) Protocol for Diagnostic Application

Similar documents
Implementation and validation of SAE J1850 (VPW) protocol solution for diagnosis application

Microprocessor Communication Module Connecting On Board Diagnostic System and Personal Computer

ON-BOARD DIAGNOSTICS SCANNER

K-line Communication Description

OBDII J1708/J1587 Simulator

SURFACE VEHICLE RECOMMENDED PRACTICE

VSI-2534 User Manual

OE 20 C1 OE20C VCC RxD RST LED1 LED2. TxD XTAL2 XTAL1 NC. TxK TxL. RxK GND. v /05/2004. Features

Chris Frey May 3, 2013 ECET - CPET 491 Senior Design Project Phase II Project Advisor and Instructor: Professor Paul I. Lin

K-Line Initialization Information

OBD-II Engine Code Reader with Bluetooth Technology

Standardized Tool Components for NRMM-Diagnostics

mobydic 4910 Multiprotocol ECU Simulator v1.01 Features

ISO INTERNATIONAL STANDARD

LDV Communications Specification

Serial Buses in Industrial and Automotive Applications

Product Information ES582.1 Compact USB Device

EURO5 PASSTHRU REPROGRAMMING OF ECU S INFORMATION ON THE REPROGRAMMING OF ECU S WITH OTC D650 (INSTALLATION OF OTC PASSTHRU SOFTWARE ON PC/LAPTOP AND

Troubleshooter Quick Reference Guide

USBCAN-OBD. USB to CAN adapter. User Manual. Document version 3.01 (2015/04/22)

DEVELOPMENT OF OBD-II DRIVER INFORMATION SYSTEM

Road vehicles Communication between vehicle and external equipment for emissions-related diagnostics

MotoHawk support for ISO 15765

Research and Development of Vehicle Fault Diagnostic Protocol ISO15765

USB Complete. The Developer's Guide Fifth Edition. Jan Axelson. Lakeview Research LLC Madison, WI 53704

Workshop on In Vehicle Network using CAN By

ISO INTERNATIONAL STANDARD

Research on Automotive UDS Diagnostic Protocol Stack Test System

ODX Process from the Perspective of an Automotive Supplier. Dietmar Natterer, Thomas Ströbele, Dr.-Ing. Franz Krauss ZF Friedrichshafen AG

Network analysis and automotive diagnostics

OBD Auto Doctor. User Manual for ios (iphone and ipad) Copyright 2018 Creosys Ltd

Product Information ES582.1 Compact USB Device

INTERNATIONAL STANDARD

OBD GPS Tracker CW-601 User Manual

LAUNCH. X-431 PADII Product Introduction

AVT-718 SDM-AOS Support

OASIS TECHNICAL COMMITTEE FORMAT OF AUTOMOTIVE REPAIR INFORMATION

USB-Link 2 Vehicle Interface Installation and Setup Manual

Implementation of CAN Bus Protocol

OE90C2600 OE90C2600 PLCC-28. mobydic 2600 plus version 1.00 released Features

Anybus-CC Technical Introduction

CAN Test Box. User s Guide

DTC P0335 CKP Sensor A Circuit Performance

ADVANCED VEHICLE TECHNOLOGIES, Inc. AV. AVT-718 LIN Support. Introduction. Firmware. Hardware. Inc.

Mongoose Pro GMII Quick Start Guide

CONTROLLER AREA NETWORK (CAN)

Data Communication/MIDI. Juan P Bello

ec-test-mate Hardware Reference Manual

J1939 OVERVIEW. 1

CANalyzer.J1939. Product Information

Disclaimer. Safety Precautions and Warnings. icarsoft English User s Manual

Renesas LIN Overview. White paper REU05B Introduction

Design of the Control System about Central Signals in Electric Vehicle

This document is a preview generated by EVS

Mongoose Pro Quick Start Guide

ISO INTERNATIONAL STANDARD. Road vehicles Diagnostic systems Keyword Protocol 2000 Part 2: Data link layer

MilCAN A. Data Link Layer Specification IHSDB-APP-GEN-D-031. Revision 4

Serial Communication. Spring, 2018 Prof. Jungkeun Park

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

Design and Simulation of UART for Serial Communication

hipecs-cio100 CANopen I/O module with 16/16 digital I/O

Frequently Asked Questions

ISO INTERNATIONAL STANDARD

Wireless OBD II CAN Bus Embedded System Design

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

More on IO: The Universal Serial Bus (USB)

ISO INTERNATIONAL STANDARD. Road vehicles Unified diagnostic services (UDS) Part 1: Specification and requirements

Understanding and Using the Controller Area Network Communication Protocol

ISO INTERNATIONAL STANDARD. vehicles Diagnostics on. systems. routiers Diagnostic sur gestionnaire de réseau de communication

CANoe.J1939. Product Information

Embedded Wireless Laboratory Inc. CANfilter. User Manual. Embedded Wireless Laboratory Inc. (2016) CANfilter User Manual

Road vehicles Local Interconnect Network (LIN) Part 2: Transport protocol and network layer services

ISO INTERNATIONAL STANDARD. Road vehicles Controller area network (CAN) Part 3: Low-speed, fault-tolerant, medium-dependent interface

OBD Simulator. Software to simulate and re-play a vehicle.

GAT Handheld Coder Pro+ User Manual

Vehicle Network Gateway (VNG)

PCAN-LIN Interface for LIN, CAN, and RS-232. User Manual. Document version ( )

A modern diagnostic approach for automobile systems condition monitoring

I/O Management and Disk Scheduling. Chapter 11

Implementation of Communication Interfaces in Power Converters

Digital Storage Oscilloscope

An Efficient Designing of I2C Bus Controller Using Verilog

Real-Time Hardware-In-Loop simulation for automated validation of diagnostic services

Installation and user s manual

OBD-II Diagnostic In this guide you will learn how to use our new feature OBD-II Diagnostic. And, specifically, how to set it up and use it in repair.

Who is riding the Bus?

PD215 Mechatronics. Week 3/4 Interfacing Hardware and Communication Systems

NC1701 ENHANCED VEHICLE COMMUNICATIONS CONTROLLER

X-431 Volkswagen Diagnosis. Table of Contents INTRODUCTION...1

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4465

Acu-Trac Ultrasonic Level Sensors

Serial Port Complete

System Verification of Flexray Communication Networks Through Behavioral Simulations

AUTOMATION USING POWER LINE COMMUNICATION

Asynchronous Transmission. Asynchronous Serial Communications & UARTS

Implementation of Wireless Sensor Hub to Support Protocols Interoperability

Hardware. Ver

Performance Evaluation & Design Methodologies for Automated CRC Checking for 32 bit address Using HDLC Block

Unified Diagnostic Services Protocol Implementation in an Engine Control Unit

Transcription:

Implementation and Validation of K Line (ISO 9141) Protocol for Diagnostic Application Gauri Mahajan 1, Mr. S.K.Parchandekar 2, Mr. Mohammad Tahir 3 1,2 Department of Electronics Engineering Walchand college of Engineering, Sangli, Maharashtra, India 3 Project Manager, Tata Consultancy Services, Pune, Maharashtra, India --------------------------------------------------------------------------***----------------------------------------------------------------------- Abstract: There is requirement for setting up the interchange of digital information between on-board emission-related Electronic Control Units (ECUs) of road vehicles and the SAE OBD II scan tool as specified in SAE J1978. This communication is established in order to facilitate inspection, test diagnosis and adjustment of vehicle systems and ECUs. OBD II uses various protocols, of which K line is mainly used for diagnostics purpose. K line Transmission is based on UART signaling and Communication uses Request Response Pattern. This protocol is in use but components used to design K line transceiver have become absolute these days. So there is need to come up with new solution for K line transceiver which will satisfy all existing requirements and have life of at least 10 years ahead. Keywords: K-Line, On Board Diagnostic (OBD), L-Line I.INTRODUCTION On Board Diagnostic II: The solution to reduce emissions is development of good testing system of vehicles. On Board Diagnostic (OBD) is a system, introduced by the California Air Resources Board. OBD systems are incorporated in computers to monitor vehicles components which may affect emissions when they are malfunctioning. OBD systems provide access to users to monitor various key components of vehicle. These systems always detect malfunction. The OBDII (On-Board Diagnostics II) system ensures correct operation of the vehicle s emission control system during its lifetime by monitoring components for deterioration and malfunction. The output of the OBD system is malfunction indicator lamp (MIL), also known as check engine lamp. When fault is detected, MIL is illuminated and diagnostic trouble code (DTC) is stored. A freeze frame, containing diagnostic data taken from that moment, is also stored. A diagnostic tester (scan tool) is required to obtain and display the diagnostic information stored via serial diagnostic interface. The information can be read using one of the following 4 legislated data link layer protocols: K Line: SAE J1850 (ISO 11519-4) ISO 9141-2(K-Line) ISO 14230-4 (KWP 2000 Keyword Protocol) ISO 15765-4 (CAN Diagnostics) The K-Line is suitable for both on-board and offboard diagnostics. K-Line is a bidirectional line. It is used during initialization to convey address information from the diagnostic tester to vehicle ECUs, simultaneously with the line-l. Line-L is a unidirectional line and used only during initialization to convey address information from the diagnostic tester to vehicle ECUs, simultaneously with the K line. At all other times it should remain idle in the logic 1 state. After conveying the address, the K line is used to convey bidirectional data between vehicle ECUs and the diagnostic tester to complete initialization. After initialization, it is used to convey request messages from the diagnostic tester to vehicle ECUs and response messages from the vehicle ECUs to the diagnostic tester. Specifications: 1. Specifies Physical and Link layers 2. Bidirectional bus, communicating over 1 wire (the K Line) 2017, IRJET Impact Factor value: 5.181 ISO 9001:2008 Certified Journal Page 708

3. Optional: additional unidirectional L Line (Allows mixed networks using only K Line / using both K+L Line) 4. Bit transmission compatible to UART (Universal Asynchronous Receiver Transmitter): 1 start bit, 8 data bits, 1 stop bit, optional parity bit. 5. Bit rate: 10.4 Kbit/s. ready to communicate signal. This ends initialization sequence. CONNECTION ESTABLISHMENT PROTOCOL (2 VARIANTS) 5 BAUD INITIALIZATION: Figure below shows inter-byte and inter-message timing parameters and explains 5 baud initialization. The total time for address lasts for 2 seconds. After validation of address internally in vehicle ECU(s), which takes time known as W1, which is between 60 to 300 ms long, vehicle will respond with synchronization byte 55H informing tester of new baud rate of 10.4 Kbps. The vehicle shall then wait a time known as W2, which is between 5 to 20 ms, for tester to reconfigure to new baud rate, and then the vehicle will send two key bytes. Signaling: Fig: Signal voltage levels, worst case values ECU and tester shall properly determine each logic state 1) Logic 0 : is equivalent to a voltage level on the line of less than 20 % VB, for transmitter, 30 % VB, for receiver. 2) Logic 1 : is equivalent to a voltage level on the line of greater than 80 % VB for transmitter, 70 %VB for receiver. In addition, the slope times shall be less than 10 % of the bit time. II. Brief Review of Literature Survey: Fig: 5 Baud Initialization These key bytes shall be either 08 08 or 94 94, separated by time W3,which is between 0 to 20 ms, that describe tester the value of P2MIN(time period between completion of stop bit of last byte of message and first edge of start bit of next message). Message can be request or response or multiple vehicle response. If message synchronization is achieved only by timing then P2 MIN shall be 25 ms and keywords 08 08 shall be used. If another type of message synchronization is provided then P2MIN shall be 0 ms and keywords 94 94 shall be used. As an acknowledgment of reception of key bytes, the tester, after waiting for time period W4, which is between 25 to 50 ms, shall then invert key byte #2 and send it to the vehicle. After waiting for another period W4, the vehicle shall then invert initialization address of 33 and send it to tester as 1) ISO 9141-2-1994 : It specifies the requirements for setting up the interchange of digital information between on-board emission-related Electronic Control Units (ECUs) of road vehicles and the SAE OBD II scan tool as specified in SAE J1978.This paper also describes signaling,frame format,way of communication, message structure, requirements of diagnostic tester,requirements of ECU. 2) ISO 9141-2-1989: It specifies various system configurations that can be made by using K Line and L Line. The capacitance contribution by various element and baud rate limitation is also explained in this paper. III. Validation of K line transceiver: Drawback of old transceiver: There is no as such flaw of old transceiver but it is obsolete that s why there is need to change transceiver. While selecting new transceiver solution for diagnostic purpose there are various areas need to be focused which are given below: 2017, IRJET Impact Factor value: 5.181 ISO 9001:2008 Certified Journal Page 709

1) Whether new solution is ISO 9141 supported or not. Data rate, voltage level compatibility, supply voltage, supply current, operating temperature, cost. 2) Point need to be considered for validation: Amplitude, rise time, fall time, baud rate. 3) Parameters taken into consideration while choosing new transceiver: Important point needs to be considered is a package type. The package type should be such that you need not require changing whole design. 4) Another point is whether transceiver is AEC qualified or not (Automotive supported or not).aec (Automotive Electronics Council) is organization based on US that sets qualification standard for supply of components ion automotive industry. This standard check if life time of component passes required benchmark. It also checks temperature, moisture resistance of component from minimum to maximum reading. Depending on these parameter we have compared available choices for K Line transceiver and we selected the best choice i.e. TJA1020. TJA1020 is LIN transceiver which is having compatibility with K line. So this transceiver is selected for this application. Input levels of TJA1020 are compatible with 3.3 V and 5 V devices. It supports Baud rate up to 20 Kbaud. It has passive behavior in unpowered state. Then we compared the parameter of new transceiver with old one. Parameter matches almost except fall time but it don t have adverse effect on the functionality of K-line protocol. IV. Communication Flow Host will transmit request over USB. USB will pass this request to request handler. According to module ID request handler will forward the request to corresponding module. In our case the request will be forwarded to K Line, it will transmit this request to ECU. The Request handler task is ID, HOST Request USB Request/ Response Handler Acknowledgment KLine Fig: Communication Flow Response ECU It is the job of responsible for routing the requests to the appropriate module. In case, the request contains an invalid module the request handler to indicate the error to the HOST. Depending on request received ECU will perform some action and will transmit response, which will transmit back to Host through K line, response handler, USB. This will be flow of communication between Host and ECU. To deal with real time environment it is essential to choose RTOS (Real time Operating system).the whole implementation is divided into following two parts, 1) Hardware design to implement K line 2) Firmware design to establish communication with host. V. Firmware System Design The main function of firmware is to act like middle layer for data transmission between host and K-Line protocol device. a) Vxworks RTOS: To deal with real time environment it is essential to choose RTOS (Real time Operating system). This project contains three parts i.e. application, I/O system and Kline driver. Application part which consist of number of API such as start communication, set parameters, build response, build acknowledgement. So there are number of events, interrupts, requests. To handle all this semaphore, message queue, events are required. So there is need of RTOS. In this project Vxworks RTOS is used. VxWorks is a real-time operating system. It is developed as proprietary software by Wind River Systems. The key features of Vxworks are high performance, scalable RTOS. It supports ARM, Pentium, Intel X-Scale, Super H and other popular processors for embedded system design. Fast execution of application codes is possible because Vxworks supports kernel mode execution of tasks. Support of powerful development tools that make Vxworks easy and efficient to use. Many simulation tools, time-performance analysis tools, debug and test tools are provided, which makes VxWorks as an RTOS that supports development of almost any embedded application. b) Firmware Flow: If host want to send any parameter to ECU then first frame is formed in application then it is send to I/O routine.i/o routine call basic write call and send data to Kline driver routine. Finally driver routine sends that data to Kline bus. Total firmware is divided into three parts. They are application, I/O system and Kline driver routine 2017, IRJET Impact Factor value: 5.181 ISO 9001:2008 Certified Journal Page 710

connector. Device 1 acts as On board Diagnostic tester and device 2 acts as ECU. When Host wants to communicate with ECU, The communication is done through K Line. Device 1 and Device 2 are connected to each other. When host want to access any parameter from ECU then first host send request in the form of frame. Frame is passed through USB to device 1, device 1 send it to device 2. Device sends response to host through device 1.The total flow of project is divided into three parts. First is application, second is I/O system and third is Kline driver. Application consists number of API s. To communicate with hardware Kline driver is written. I/O system is intermediate between application and Kline driver. I/O system is as a switch which routes the user request to proper driver. Application: Fig: Firmware Flow Application consists of number of API s like start communication, send response to host, accept request from host, set communication parameters. Application is a user routine. It consists of main task that handle all activities of Kline module. I/O Routine: I/O routine is intermediate between application and Kline driver. Vxworks I/O system is like a switch, which route user request to appropriate driver routine. Internally the Vxworks I/O has unique design that makes it faster and more flexible. The VxWorks I/O system is designed to present a simple, uniform, device-independent interface to any kind of device. Kline Driver routine: Kline driver creates interface between Freescale processor and Kline transceiver. This routine accepts data from upper layer send it to transceiver and vice versa. Functionality provided by Kline driver routine is To transmit a stream of bytes on Kline bus 1) To receive a stream of bytes which have been transmitted on Kline bus 2) To initialize and configure transmission and reception lines. VI. Experimental Setup Experimental setup contains two devices, personal computer which acts as host, USB cables, and back to back VII. Results Screen shot of validation of K line with TJA1020 2017, IRJET Impact Factor value: 5.181 ISO 9001:2008 Certified Journal Page 711

Logic levels: Logic 1: 10 V; Logic 0: 600 mv Baud Rate: 10.02 KB Rise time: 73.32 us According to waveform observed, we can conclude that amplitude, baud rate, rise time, fall time meets the expectation of K line communication protocol. Hence old transceiver SI9241 can be replaced by new transceiver TJA1020. VIII. Comparison of Transceiver Parameters: Paramete r New Transceiver (TJA1020) Old Transceiver (SI9241AEY-TI-E3) Amplitude 9.6V 14.4V Rise Time 73.32 us 91.93us Fall time: 3.183 us Fall Time 3.183 us 89.06us Baud Rate 10KB 10KB From the comparison of measured parameters of both transceivers, it is found that all parameters are nearly same for old and new transceiver except fall time. It doesn't affect the functionality of K Line. IX. CONCLUSION TJA1020 transceiver provides good solution for old one. Main protocol parameters i.e. amplitude, baud rate, rise time matches exactly. Only fall time of new transceiver varies largely from that of old transceiver value. But it will not have that much effect on functionality. So old transceiver can be 2017, IRJET Impact Factor value: 5.181 ISO 9001:2008 Certified Journal Page 712

replaced with new one and can be used for communication between vehicle ECU and ODB tester for diagnostic purpose. X. REFERENCES [1] IS0 9141-2(First edition) Road vehicles - Diagnostic systems -Part 2: CARB requirements for interchange of digital information. [2] ISO 9141-3(First edition) Road vehicles Diagnostic systems Part 3: Verification of the communication between vehicle and OBD II scan tool [3] IS0 9141 (First edition) Road vehicles - Diagnostic systems - Requirements for interchange of digital information. 2017, IRJET Impact Factor value: 5.181 ISO 9001:2008 Certified Journal Page 713