博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ISO 9141-2 and ISO 14230-2 INITIALIZATION and DATA TRANSFER
阅读量:4330 次
发布时间:2019-06-06

本文共 3511 字,大约阅读时间需要 11 分钟。

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.

 

 

 

 

转载于:https://www.cnblogs.com/shangdawei/p/3593598.html

你可能感兴趣的文章
kibana的query string syntax 笔记
查看>>
旋转变换(一)旋转矩阵
查看>>
thinkphp3.2.3 bug集锦
查看>>
[BZOJ 4010] 菜肴制作
查看>>
C# 创建 读取 更新 XML文件
查看>>
KD树
查看>>
VsVim - Shortcut Key (快捷键)
查看>>
C++练习 | 模板与泛式编程练习(1)
查看>>
HDU5447 Good Numbers
查看>>
08.CXF发布WebService(Java项目)
查看>>
java-集合框架
查看>>
RTMP
查看>>
求一个数的整数次方
查看>>
点云PCL中小细节
查看>>
铁路信号基础
查看>>
RobotFramework自动化2-自定义关键字
查看>>
[置顶] 【cocos2d-x入门实战】微信飞机大战之三:飞机要起飞了
查看>>
BABOK - 需求分析(Requirements Analysis)概述
查看>>
第43条:掌握GCD及操作队列的使用时机
查看>>
Windows autoKeras的下载与安装连接
查看>>