SAE J1939学习笔记(三)

J1939故障代码种类

J1939 由几个不同的诊断信息:
   –诊断信息 1 - DM1 – 现行故障代码
   –诊断信息 2 - DM2 – 非现行故障代码
   –诊断信息 3 - DM3 – 清除非现行故障代码
通常地,用户会用 DM1 信息来读取现行故障码。
DM1 信息是  PGN 65226 or  FECA h 相关的信息请参考J1939-73标准。

PGN 65226

pgn65226 – Active DiagnosticTrouble Codes – DM1 

Transmission Repetition Rate: When a fault goes Active/Inactive & 1swhile active.

Data Length:                         Variable

Data page:                             0

PDU Format:                           254

PDU Specific:                          202

Default Priority:                       6

Parameter Group Number:            65226 (00FECA16)

Byte:      1                         LampStatus

Byte:      2                         Reserved

Bytes:     3–5                      SPN and FMI

Byte:      6 Bit:8                   SPNConversion

Byte:      6 Bits:1–7               Occurrence Count


注意:1.参考文件中例子字节和我引用的例子字节的描述序列均为:1 2 3 4 5 6 7 8...

      2.参考文件中例子字节和我引用的例子字节的描述位序列均为:8 7 6 5 4 3 2 1,即第一个数描述为第8位,依次递减,最         小序号为1。如上例中,字节6的描述第8位则为第1个数。

        注:当实际需要计算的时候,或者其他应用的时候,仍然在前的为高位,并不需要做位调整,只是称呼不同而已。

      3.J1939字节排序为小端模式,即为高字节在后,低字节在前(多字节),所以实际计算的时候,如在数据域表示为8AA1,则实际的计算数据应为A18A。(所有数据(不论多少个字节)都是最后一个字节为最高字节,这和16位或32为单片机有出入)(特殊情况例外,如下例的SPN)

Byte1 – Lamp Status

§Bits1 – 2   Protection Lamp               保护灯状态
§Bits3 – 4   Amber Warning Lamp            琥珀色警告灯状态
§Bits5 – 6   Red Stop Lamp                 红色停止灯状态
§Bits7 – 8   Malfunction Indicator Lamp    故障指示灯状态

Bytes 3-5



    该19位的数字是用于识别报告的诊断项目。SPN 用于多种目的,专用于诊断的有:(1)用于识别可修复的失效最小子系统;(2)用于识别子系统或集成部件可能并无严重故障,但存在运行不正常;(3)识别一个将要告知的专门事件或情况;以及(4)用于报告部件和非标准的故障模式。可疑参数与参数组中相关参数或与诊断项目一一对应,但并不是参数组中的参数本身。可疑参数编号与发送故障诊断信息的控制模块的地址编码无关,然而,有必要通过控制模块的地址编码来确定故障诊断信息是由网络上的哪个控制器来执行诊断的。 初始的511 个SPN 是预置SPN,并将使用与在SAEJ1587中使用的参数标志符(PID )完全相同的编号。也就是在报告加速踏板故障时,该参数标志符在SAE J1587 中定义为PID 91 ,而 SPN 的编号就定义为SPN 91。所有其他的 SPN将从512 开始继续编号,且每加一作为一个新的赋值。生产厂可自定义可疑参数,编号自 520192至524287,  多达4096个。
                                   
    该FMI 定义了为SPN 所识别的子系统中发现的故障类型。注意,该故障可能不是电子故障,但相反可能是需要报告给设备技术员甚至操作员的子系统故障或条件,这些条件包括需要报告的系统事件或状态。FMI 、SPN 为预留的和发生次数域组合已知的诊断故障代码。如果另外的故障模式是必需的, FMI 将由CATARC来赋值。 
数据长度:      5位 
分辨率:      1FMI/位 
数据范围:     0~31 
类型:         状态 
可疑参数编号: 1215 
                                -《 商用车控制系统局域网络(CAN 总线)通讯协议, 第6 部分:应用层—诊断
The Suspect Parameter Number (SPN) is converted into decimal depending on the Conversion Bit(6.8).
Byte 6, Bit8:tells us which method isused interpret the SPN。
All  Mid-Range and Heavy Duty will have a ‘0’ in this position hence Conversion Method 0 (J1939 Version 4)。
All  High Horse Power will have a ‘1’ in this position hence Conversion Method 1 (J1939 Version 1)。

Used by Mid-Range and Heavy Duty (QSB, QSC, QSM, QSX):


SPN = 000  00000010  0111 0101 = 629

FMI = 0 1100 = 12

SPN 629, FMI 12 = Fault Code 111 – Engine Control Module

                                                          – Criticalinternal Failure

Used by High Horse Power (QSK, QST, QSKV):


SPN = 0000 0000 0100 1110  101 = 629

FMI = 0 1100 = 12

SPN 629, FMI 12 = Fault Code 111 – Engine Control Module

                                                          – Criticalinternal Failure

注:实际还存在6.8为1的时候的版本2和版本3,这里不做介绍,可参考《商用车控制系统局域网络(CAN 总线)通讯协议,第6 部分:应用层—诊断》

Byte 6, Bits 1 – 7  

Tellus how many times the fault has occurred.
Youcan directly convert this into decimal .
i.e.000 0010 = 2, hence this fault has occurred twice.

举例

Example:  (QSM,QSX,QSC,QSB):


Example:  (QSKV orHHP):


FMI Code  Description

   0  DataValid but above Normal Operating Range

    1  DataValid but below Normal Operating Range

    2  DataErratic, Intermittent or Incorrect

    3  Voltageabove Normal or Shorted to High Source

    4  Voltagebelow Normal or Shorted to Low Source

    5  Currentbelow Normal or Open Circuit

    6  Currentabove Normal or Grounded Circuit

    7  MechanicalSystem Not Responding or out of adjustment

    8  Abnormalfrequency or pulse width or period

    9  AbnormalUpdate Rate

  10  AbnormalRate of Change

  11  RootCause Not Know

  12  BadIntelligent Device or Component

  13  Outof Calibration

  14   SpecialInstructions

  15  DataValid But Above Normal Operating Range (Least Severe Level)

  16  DataValid But Above Normal Operating Range (Moderate Sever Level)

  17  DataValid But Below Normal Operating Range (Least Severe Level)

  18  DataValid But Below Normal Operating Range (Moderate Severe Level)


  • 9
    点赞
  • 74
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值