http://ecad.tu-sofia.bg/et/2005/pdf/Paper097-P_Dzhelekarski1.pdf

INITIALIZATION

Prior to any diagnostic communication an initialization must be performed.

This is the process of activating the OBD system for starting communication.

The initialization can be started after an idle-time on the bus.

Two types of initialization can be used:

5-baud and fast initialization.

ISO 9141-2 supports only 5-baud initialization,

whereas ISO 14230-2 supports both types.

5-BAUD (CARB) INITIALIZATION

This initialization starts with sending of 5-baud address byte from the tester (client) to the OBD system (server).

If L-line exists, the address byte must be sent simultaneously on both K & L-lines, otherwise it should be sent only on K-line.

The address byte contains the functional address of the OBD system.

This is implemented in two ways in initSlow() method.

In K&L initialization, both lines are driven by simultaneous setting/clearing of RTS and TxD according to the bit values of the address byte:

this is computed 5-baud init. A system timer for 200 ms (5-baud bit time) is used.

For K-only initialization the port is configured at 5 baud rate; the address byte is sent; 2000 ms pause follows; baud rate is restored to 10,400 baud.

Fig. 3 shows the format of the 5-baud initialization. The server returns baud rate synchronization pattern ($55)

(standard baud rate 10,4 kbit/s, other rate is manufacturer specific). All subsequent communications are using this baud rate.

After sending the pattern, the server sends two keywords (KW) which carry information about the form of the subsequent serial communications.

From these keywords the tester identifies the diagnostic protocol to be used, ISO 14230-2 or ISO 9141-2.

After that the client confirms with sending logical inversion of keyword 2.

Then the server confirms with logical inversion of the address byte.

From this time on the communication link is established and the tester can start to request diagnostic data.

FAST INITIALIZATION

The fast initialization begins with wake-up pattern (WuP), transmitted by the tester simultaneously on K and L lines

(if provided L line is used, otherwise transmitted only on K-line) – see Fig. 4.

This is implemented in initFast() method by setting the TxD and RTS , followed by waiting for TiniL time interval and clearing of these signals.

After the time TWuP has elapsed the client sends StartComminication message request.

This message uses functional addressing and contains the target address of the OBD system and the source address of the tester.

The server responds with StartCommunication positive response(s), which contains the keywords.

DATA TRANSFER

After the communication link has been established, the tester can send request messages

and receive message response(s) from the ECU(s) of the OBD system (see Fig. 5).

This is referred to as data transfer and is performed by the transfer() method.

The transfer timing is very important and is determined by the periods P1…P4 with specified maximal and minimal allowable values.

The timing is implemented by using system timer for wait function and by using communication read timeouts.

In this way it is possible to group received response bytes into messages, based on separation period P2.

The period P3max has value of 5000 ms. After that time the communication link is automatically terminated by the server.

Therefore, to keep connection alive the tester must send periodically request messages.

ISO 9141-2 and ISO 14230-2 INITIALIZATION and DATA TRANSFER的更多相关文章

  1. Stripe开发笔记之-ISO Currency Code(ISO 4217)

    参考:维基百科和ISO官网 ISO Currency Code:国际标准组织通用货币代号,国际标准化组织(英语:International Organization for Standardizati ...

  2. Initialization of data members

    In C++, class variables are initialized in the same order as they appear in the class declaration. C ...

  3. 从FreeBSD里面看到的网络协议列表,感觉可以保存一下

    # # Internet protocols # # $FreeBSD$ # from: @(#)protocols 5.1 (Berkeley) 4/17/89 # # See also http: ...

  4. BW知识问答汇总

    什么是sap的星型结构,能不能详细讲解一下? Cube的星型结构中SID技术的优点有哪些? 什么是BW的星型结构,与传统的星型结构的区别是什么? SAP的星型结构相对于传统的星型结构优势? Cube与 ...

  5. BW知识问答锦集

    声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...

  6. SAE/ISO standards for Automotive

    On-Board Diagnostics J1962 Diagnostic Connector Equivalent to ISO/DIS 15031-3: December 14, 2001J201 ...

  7. Vehicle Network Protocols -- ISO/KWP CAN CCD PCI SCI / SCP / Class 2

    Vehicle Network Protocols There are 5 protocols in the OBD2 system and a car will normally only use ...

  8. atitit.日期,星期,时候的显示方法ISO 8601标准

    atitit.日期,星期,时候的显示方法ISO 8601标准 1. ISO 86011 2. DAte日期的显示1 2.1. Normal1 2.2. 顺序日期表示法(可以将一年内的天数直接表示)1 ...

  9. 自定义制作iso镜像

    下载"/etc/yum.repos.d/"下的MondoRescue软件库,文件名为"mondorescue.repo".请为你的Linux OS发行版本下载正 ...

随机推荐

  1. c# 读取其他程序的ListView内容

    ArcMap没找到一个导出图层字段结构的功能,自已花点时间用C#做了个小工具,专门用来导arcmap中图层属性面板中的字段信息. 使用说明: 1) 点击“查找窗口”按钮.2) 在ListView控件上 ...

  2. PHP include()和require()方法的区别

    本文总结了PHP的include()和require()两种包含外部文件的方法的不同之处.基本上就是,加载失败的处理方法,性能,以及使用弹性方面的不同. PHP的include()和require() ...

  3. 纠结的ARC

    xcode不断进步,在xcode4中引入了ARC的概念.您用或者不用它就在那里,于是有了本文:如何在未使用arc的工程中引入一个使用了arc特性的文件,如何在arc工程中引用未使用arc的文件.其实说 ...

  4. [偏微分方程教程习题参考解答]4.1Duhamel 原理

    1. 如果已知下述常微分方程的特定初值问题 $$\bex \sedd{\ba{ll} -y''+y=0,&x>0,\\ y(0)=0,\quad y'(0)=1 \ea} \eex$$ ...

  5. [Papers]MHD, $\p_3\pi$, Lebesgue space [Cao-Wu, JDE, 2010]

    $$\bex \p_3\pi\in L^p(0,T;L^q(\bbR^3)),\quad \frac{2}{p}+\frac{3}{q}=\frac{12}{7},\quad \frac{12}{7} ...

  6. Java读取excel指定sheet中的各行数据,存入二维数组,包括首行,并打印

    1. 读取 //读取excel指定sheet中的各行数据,存入二维数组,包括首行 public static String[][] getSheetData(XSSFSheet sheet) thro ...

  7. 使用HTML5的JS选择器操作页面中的元素

    文件命名为:querySelector.html,可在Chrome浏览器中预览效果. 1 <!DOCTYPE html> 2 <html lang="en"> ...

  8. 如何引用CSS样式表

      如何使用样式 当浏览器读到一个样式表,它就会按照这个样式表来对文档进行格式化.有以下三种方式来插入样式表: 1.外部样式表 当样式需要被应用到很多页面的时候,外部样式表将是理想的选择.使用外部样式 ...

  9. easyui不提交window中的form表单数据

    <form id="ff" method="post">, <div id="win" class="easyu ...

  10. 轻松学习Linux之入门篇

    1.Linux概述: 2.Linux优点 3.linux历史待上传 4.linux部分发行版 5.linux政府扶持 本文出自 "李晨光原创技术博客" 博客,谢绝转载!