ISO 9141-2 and ISO 14230-2 INITIALIZATION and DATA TRANSFER
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的更多相关文章
- Stripe开发笔记之-ISO Currency Code(ISO 4217)
参考:维基百科和ISO官网 ISO Currency Code:国际标准组织通用货币代号,国际标准化组织(英语:International Organization for Standardizati ...
- Initialization of data members
In C++, class variables are initialized in the same order as they appear in the class declaration. C ...
- 从FreeBSD里面看到的网络协议列表,感觉可以保存一下
# # Internet protocols # # $FreeBSD$ # from: @(#)protocols 5.1 (Berkeley) 4/17/89 # # See also http: ...
- BW知识问答汇总
什么是sap的星型结构,能不能详细讲解一下? Cube的星型结构中SID技术的优点有哪些? 什么是BW的星型结构,与传统的星型结构的区别是什么? SAP的星型结构相对于传统的星型结构优势? Cube与 ...
- BW知识问答锦集
声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...
- SAE/ISO standards for Automotive
On-Board Diagnostics J1962 Diagnostic Connector Equivalent to ISO/DIS 15031-3: December 14, 2001J201 ...
- 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 ...
- atitit.日期,星期,时候的显示方法ISO 8601标准
atitit.日期,星期,时候的显示方法ISO 8601标准 1. ISO 86011 2. DAte日期的显示1 2.1. Normal1 2.2. 顺序日期表示法(可以将一年内的天数直接表示)1 ...
- 自定义制作iso镜像
下载"/etc/yum.repos.d/"下的MondoRescue软件库,文件名为"mondorescue.repo".请为你的Linux OS发行版本下载正 ...
随机推荐
- IRequiresSessionState和IReadOnlySessionState应用上的一些差异
在调用ashx时,如果需要应用Session,则必须继承接口 IRequiresSessionState,IReadOnlySessionState,但根据字面,可以知道 IRequiresSessi ...
- scala初学
起因:新公司的程序用scala,为了不落后,不落伍,跟上时代的浪潮,咱们测试也得学学新东西 适合读者:有java经验的IT人士 scala:所有变量都是对象,所有操作都是方法 1.定义变量:变量:类型 ...
- 前端面试题(JS篇)
原题地址:http://handyxuefeng.blog.163.com/blog/static/454521722013111714040259/ 好吧,最近打算换工作,所以关注比较多的是面试题, ...
- 黑马程序员——OC的内存管理学习小结
内存管理在Objective-C中的重要性就像指针在C语言中的重要程序一样. 虽然作为一门高级语言,但OC却没有内存回收机制.这就需要开发者来对动态内存进行管理.OC中内存管理的范围是:任何继承了NS ...
- STL"源码"剖析-重点知识总结
STL是C++重要的组件之一,大学时看过<STL源码剖析>这本书,这几天复习了一下,总结出以下LZ认为比较重要的知识点,内容有点略多 :) 1.STL概述 STL提供六大组件,彼此可以组合 ...
- JavaScript基础知识整理(1)数组
第一:创建. 1,var arr= new Array(); //数组为空.长度为0. arr[0]="apple"; arr[1]="orange"; arr ...
- 英语之idiom
1 quick and dirty = Done or constructed in a hasty, approximate, temporarily adequate manner, but no ...
- PostgreSQL的 fdw 跨库使用
create extension postgres_fdw; ',dbname 'postgres'); create user mapping for android_market server s ...
- dom 侧栏分享
<!doctype html> <html> <head> <meta charset="utf-8"> <title> ...
- nodejs 基本操作
查看nodejs版本 nodejs -v 升级nodejs node有一个模块叫n(这名字可够短的...),是专门用来管理node.js的版本的.首先安装n模块:npm install -g n 第二 ...