14229 诊断协议以及请求响应格式(DiagnosticSessionControl 0x10)

  1. DiagnosticSessionControl (0x10) service
    request message
    sub-function values are specified (suppressPosRspMsgIndicationBit (bit 7) not shown)
参数名 value comments
DiagnosticSessionControl Request SID 0x10
diagnosticSessionType 0x00 ISOSAEReserved
0x01 defaultSession
0x02 ProgrammingSession
0x03 extendedDiagnosticSession
0x04 safetySystemDiagnosticSession
0x05 – 0x3F ISOSAEReserved
0x40 – 0x5F vehicleManufacturerSpecific
0x60 – 0x7E systemSupplierSpecific
0x7F ISOSAEReserved

Response

参数名 value comment
DiagnosticSessionControl Response SID 0x50
sub-function 0x00 – 0xFF
P2Server_max (high byte) 0x00 – 0xFF Default P2Server_max timing supported
P2Server_max (low byte) 0x00 – 0xFF Default P2Server_max timing supported
P2*Server_max (high byte) 0x00 – 0xFF Enhanced (NRC 0x78) P2Server_max supported
P2*Server_max (low byte) 0x00 – 0xFF Enhanced (NRC 0x78) P2Server_max supported

※P2Server_max‘s Resolution is 1ms,P2*Server_max is 10ms

Supported negative response codes (NRC_)

NRC Description
0x12 sub-functionNotSupported
0x13 incorrectMessageLengthOrInvalidFormat
0x22 conditionsNotCorrect

例子:
enable programmingSession,不抑制正响应,假设P2Server_max 是50ms,P2*Server_max 是5000ms
Request:0x10 0x02
Response:0x50 0x02 0x00 0x32 0x10 0xF4

你可能感兴趣的:(诊断)