• UDS 诊断协议 $34


    一、接收格式

     1. SID:0x34

     2. dataFormatIdentifier

      Bit 7 - 4: compressionMethod:压缩方式 无压缩添0

           Bit 3 - 0: encryptingMethod 加密方法无加密添0

    具体由车厂供应商定义

        3.addressAndLengthFormatIdentifier

      bit 7 - 4: Length (number of bytes) of the memorySize parameter
      bit 3 - 0: Length (number of bytes) of the memoryAddress parameter

        4.memoryAddress

        此参数取决于addressAndLengthFormatIdentifier定义长度

        5.memorySize

        此参数取决于addressAndLengthFormatIdentifier定义长度

    二、否定响应码

    1. 0x13   incorrectMessageLengthOrInvalidFormat

      最小长度检查

    2.0x22    conditionsNotCorrect

    3.0x31    requestOutOfRange

    请求数据格式长度不正确

    4.0x33    securityAccessDenied

    未通过安全访问

    5.0x70   uploadDownloadNotAccepted

    此NRC表示无法尝试下载到服务器的内存
    由于某些故障情况而完成

    没有执行31 擦除服务时。

    三、正常响应码回复格式

    1. 0x74

    2.lengthFormatIdentifier

    数据长度2

    3.maxNumberOfBlockLength

    每包传输最大量

     [
      byte#1 (MSB)
        :
      byte#m   ]

     其中此包含SID和包号。

  • 相关阅读:
    API接口的安全设计验证—ticket,签名,时间戳
    能上QQ,浏览器不能上网?
    jQuery 获取元素当前位置offset()与position()
    USB Type-C工作原理解析
    利用SVN工具下载OpenCore代码
    内存数据保存到文件
    oracle07
    oracle06
    oracle05
    oracle04--伪列
  • 原文地址:https://www.cnblogs.com/hkj8808/p/13396922.html
Copyright © 2020-2023  润新知