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.0×22    conditionsNotCorrect

3.0×31    requestOutOfRange

请求数据格式长度不正确

4.0×33    securityAccessDenied

未通过安全访问

5.0×70   uploadDownloadNotAccepted

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

没有执行31 擦除服务时。

三、正常响应码回复格式

1. 0x74

2.lengthFormatIdentifier

数据长度2

3.maxNumberOfBlockLength

每包传输最大量

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

 其中此包含SID和包号。

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注