当前位置:网站首页>Read SAE J1939 protocol data stream
Read SAE J1939 protocol data stream
2022-04-22 07:55:00 【ABCD】
Use SAE J1939 Agreed vehicle , Mostly broadcast messages . Set baud rate and filter at the test equipment end ID, receive data , And in accordance with the SAE J1939-71 analysis .
SAE J1939 Agreement message CAN-ID by 29 position , Its composition is shown in the figure below :

Receive message items as needed , Set the filter ID Or receive all . according to SAE J1939-21, The data segment range is 0-1785 byte , That is, message broadcasting is divided into single frame and multi frame . Here's an example .
1、 A single frame
If the engine speed message is received , Reference resources SAE J1939-71, Its PGN by 0xF004(61444), The data length is 8 byte , A single frame can be transmitted .

Filter ID Can be set to 0x00F00400, Mask set to 0x00FFFF00.
Read to data :0CF00400 70 7D 84 E0 15 00 F3 84
The engine speed is 4、5 Two bytes E0 15( The high byte of data is after ), According to the engine speed SPN(190) Calculate the speed :

0x15E0=5600;5600*0.125=700(rpm)
2、 Multiframe
Such as idle torque reference message , Reference resources SAE J1939-71, Its PGN by 0xFEE1(65249), The data length is 19 byte , It needs to be split into multiple frames for transmission .

Read to data :18ECFF0F 20 13 00 03 FF E1 FE 00
PF=0xEC,PS=0xFF, Manage connections for transport protocols , For transmission 9 Message broadcast of bytes or more ;

data ,BYTE1=0x20, Indicates broadcast announcement information ;
2、3 byte ( The high byte of data is after ) Convert to length 0x0013, Indicates that the data length is 19 byte ;
4 byte 0x03, Indicates that the data is divided into 3 package ;
6-8 byte ( The high byte of data is after ) Indicates the of a broadcast message PGN by 0x00FEE1.

Continue to receive the remaining 3 Packet data :
18EBFF0F 01 14 01 00 19 5C 20 4E
18EBFF0F 02 19 80 25 52 00 32 47
18EBFF0F 03 80 3E E0 01 2E FF FF
among , The first byte of data is serial number ,03 The last two bytes of the serial number FF、FF For filling .
FEE1 The valid data of is 19 bytes :14 01 00 19 5C 20 4E 19 80 25 52 00 32 47 80 3E E0 01 2E
The idler reference torque is at 17、18 Two bytes E0 01( The high byte of data is after ), According to the idler reference torque SPN 556 The calculated value is :

0x01E0= 480; 480*1=480(Nm).
版权声明
本文为[ABCD]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220625243070.html
边栏推荐
- Unity~脚本的生命周期
- 树莓派:4.2寸墨水屏
- C-11 Problem H: 开宝箱2
- 依赖冲突查找与解决办法(以EasyPoi为例,出现 NoSuchMethodError 或 NoClassDefFoundError )
- Conversion et fonction du format commun MFC
- 【TCP/IP 一 概述】
- Elmentui table style customization (row color, background color, content scrolling, de scrolling bar)
- Mqtt [i] Introduction to basic knowledge
- Why is MySQL self incrementing primary key not continuous?
- 观察者模式--ApplicationContext
猜你喜欢

Run program ~ customize similar CMD commands to open non system software

Unity mask click the lower UI game to start guiding Click

Xshell connect virtual machine

Solve the problem that the message notification is blocked by the El dialog ($message, $alert, $notify, $confirm)

@ transactional transaction propagation in the same class
![单片机原理[一] 学好单片机必会的五张图](/img/49/bf1cdb477622375dd558e4c6b1cf60.jpg)
单片机原理[一] 学好单片机必会的五张图

Unity遮罩 反向遮罩实现

UNITY遮罩点击下层UI游戏开始引导点击

Xshell连接虚拟机

多线程(线程通信【生产者与消费者】)
随机推荐
QT使用拖拽图片到控件和鼠标移动图片
C#中的枚举和结构体
Vmware 设置固定ip地址--桥接模式
UML类图
树莓派:模拟iSCSI存储
进制转换--学习总结
Problem A: 人脸识别
Google cache cleanup plug-in
[TCP / IP overview]
[communication interface can bus]
树莓派mono上跨平台运行一个C#自制的简易图片处理器
OBD外接测试设备初始化判断协议类型(SAE J1939/ISO15765/ISO27145)
Solve the problem that the message notification is blocked by the El dialog ($message, $alert, $notify, $confirm)
MFC common format conversion and function
JWT realizes the whole process of login authentication, password encryption and token verification (with source code)
Arduino中一种变通的发送固定格式中文短信的方法:以DHT22+GSM模块为例
CSharp 类型转换
C-11 Problem I: 找气球
QT common tool class function encapsulation summary
Instructions for functional interface @ functionalinterface