当前位置:网站首页>Read iso15031 protocol data stream
Read iso15031 protocol data stream
2022-04-22 07:55:00 【ABCD】
Request support from the vehicle PID term
All emission related OBD ECU, If at least ISO 15031 A service defined in , Support services 0x01 and PID=0x00.
service 0x01 and PID:0x00 Defined as all emissions related OBD ECUs Common to “initialization/keep alive/ping” news .
1、 The equipment shall be installed in accordance with 11 position CAN-ID(0x7DF) To request , See if the vehicle supports , If you support it , What data streams are available .
OBD The external test equipment initializes and determines the baud rate After setting the baud rate ,
The request is as follows :7DF 02 01 00 00 00 00 00 00
ECU#1 Respond to :7E8 06 41 00 98 3B A0 17 00
In this response ,
06: Response valid data length 6 Bytes ;
41: service 01 The corresponding response SID;
00: Respond to PID, In response to the request PID;
98( Binary system 10011000): On behalf of 0x01~0x08 Between PID Medium 0x01、0x04、0x05;
3B( Binary system 00111011): On behalf of 0x09~0x10 Between PID Medium 0x0B、0x0C、0x0D、0x0F、0x10;
A0( Binary system 10100000): On behalf of 0x11~0x18 Between PID Medium 0x11、0x13;
17( Binary system 00010111): On behalf of 0x19~0x20 Between PID Medium 0x1C、0x1E、0x1F、0x20;
Be careful : Support 0x20 Of PID, Explain that there is support in the follow-up PID. Need to continue sending service 0x01 and PID=0x20 Request .
The request is as follows :7DF 02 01 20 00 00 00 00 00
ECU#1 Respond to :7E8 06 41 20 A0 13 A0 01 00
In this response ,
06: Response valid data length 6 Bytes ;
41: service 01 The corresponding response SID;
20: Respond to PID, In response to the request PID;
.
.
.
01( Binary system 00000001): On behalf of 0x39~0x40 Between PID Medium 0x40;
Be careful : Support 0x40 Of PID, Explain that there is support in the follow-up PID. Need to continue sending service 0x01 and PID:0x40 Request .
Follow this rule , Until there is no support PID. such as : service 0x01 and PID=0x80 Request
The request is as follows :7DF 02 01 80 00 00 00 00 00
ECU#1 Respond to :7E8 06 41 80 EE 00 00 00 00
The vehicle does not support 0xA0 Of PID, There is no need to send the service again 0x01 and PID=0xA0 The request of .
** Be careful : Some cars have multiple ECU Respond to **, such as :
The request is as follows :7DF 02 01 00 00 00 00 00 00
ECU#1 Respond to :7E8 06 41 00 98 3B A0 17 00
ECU#2 Respond to :7E9 06 41 00 80 08 00 00 00
explain
ECU#1 (ECM) Support the following PID: 0x01、0x04、0x05、0x0B~0x0D、0x0F~0x11、0x13、0x1C、0x1E~0x20.
ECU#2 (TCM) Support the following PID: 0x01 and 0x0D.
2、 According to the first 1 Support requested PID, Request specific data streams in turn .
Such as engine speed , lookup SAE J1979-DA, Its PID by 0x0C, The vehicle supports this PID,
The request is as follows :7DF 02 01 0C 00 00 00 00 00
#ECU1 Respond to :7E8 04 41 0C 0A EE 00 00 00
Analyze according to the agreement :

0xAEE=2798;2798*0.25=699.5(rpm).
When the effective data length is greater than 7 Byte time , Multi frame transmission is required . for instance ,NOx sensor PID by 0x83, The response valid data is 11 byte .
The request is as follows : 7DF 02 01 83 00 00 00 00 00
Respond to : 7E8 10 0B 41 83 03 00 EA 00
according to ISO 15765-2 agreement , First frame data received , The valid data length is 0x00B(12 position )=11 byte , You need to send a stream control frame to request subsequent data .

Flow control frame :7DF 30 00 01 00 00 00 00 00
Respond to : 7E8 21 C8 FF FF FF FF 00 00
The valid data of the response is :41 83 03 00 EA 00 C8 FF FF FF FF, according to SAE J1979-DA in PID=0x83 analysis :
41: service 01 The corresponding response SID;
83: Respond to PID, In response to the request PID;
03( Binary system 00000011): Support NOx Sensor concentration library 1 sensor 1, Support NOx Sensor concentration library 1 sensor 2;
00EA:NOx Sensor concentration library 1 sensor 1 The value is 234(ppm);
00C8:NOx Sensor concentration library 1 sensor 2 The value is 200(ppm);

3、 If 11 position CAN-ID No answer , Description not supported 11 position CAN-ID(0x7DF). use 29 position CAN-ID(0x18DB33F1) To request :
request :18DB33F1 02 01 00 00 00 00 00 00
Respond to :18DAF100 06 41 00 98 3B A0 17 00
The specific data analysis is the same as 11 position CAN-ID.
版权声明
本文为[ABCD]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220625243039.html
边栏推荐
猜你喜欢
随机推荐
树莓派4B:使用raspi-config实现USB BOOT
[GPS - NMEA-0183 protocol]
JWT realizes the whole process of login authentication, password encryption and token verification (with source code)
RT thread [i] create project
Find points without obstacles on 3D map
Visual Studio编译器使用总结
Mqtt [i] Introduction to basic knowledge
List intersection, union, duplicate removal, extraction, attribute modification and other common operations
UNITY遮罩点击下层UI游戏开始引导点击
Solve the problem that the message notification is blocked by the El dialog ($message, $alert, $notify, $confirm)
C#数组的使用
寻找3d地图上没有障碍物的点
Rt-thread [一] 创建工程
MySQL configuration query
Rt-thread [二] 系统初始化流程
依赖冲突查找与解决办法(以EasyPoi为例,出现 NoSuchMethodError 或 NoClassDefFoundError )
STM32 peripherals [3] serial port RS232 RS485
@ transactional transaction propagation in the same class
基于卷积神经网络LeNet-5模型的mnist手写数字识别
树莓派:Adafruit的I2C SSD1306 OLED驱动


![OOPC [一] C语言对象化](/img/dc/4a12d350dc9934df3eb79796e1aa82.png)




![Rt-thread [三] link.lds链接脚本详解](/img/80/d62360d0a281b89dcfff61cb2f21ce.png)

