北京新能源汽车整车控制器系统诊断规范.docx
《北京新能源汽车整车控制器系统诊断规范.docx》由会员分享,可在线阅读,更多相关《北京新能源汽车整车控制器系统诊断规范.docx(158页珍藏版)》请在冰点文库上搜索。
北京新能源汽车整车控制器系统诊断规范
北京新能源汽车股份有限公司
整车控制器系统诊断规范
—“EV160”
文件编号:
“EV160-20150002014”
编制:
校对:
审核:
“业务高级经理”
会签:
“控制系统集成主管”
批准:
“部长”
XXX年XXX月
北京新能源汽车股份有限公司
版本信息
版本日期编制校对审核更新描述
V1.0初始版本
1、修改数据链路层描述;
2、删除31服务的02子服务;
3、删除28服务的01、02子服
务;
4、删除2703、04子服务;
5、27添加seed为四个字节的随
机数;
V1.120151127崔晓静
崔晓静
6、seed和key在列表中定
4个
字节;
7、删除2F02子服务;
8、删除1906子服务;
9、status改为仅bit0、3支持
10、删除NRC11;
11、F184修改为9个字节;
12、添加故障码中英文对照表;
2
北京新能源汽车股份有限公司
版本信息2
1.参考文献5
2.网络拓扑5
3.诊断接口6
4.诊断需求7
4.1.诊断协议7
4.1.1.物理层7
4.1.2.数据链路层7
4.1.3.网络层7
4.1.4.应用层时间参数8
4.2.DiagnosticServices(ISO14229-1)8
4.2.1.SupportedDiagnosticServices9
4.2.2.DiagnosticSessionControl(10H)11
4.2.3.ECUReset(11H)13
4.2.4.CommunicationControl(28H)14
4.2.5.SecurityAccess(27H)15
4.2.6.TesterPresent(3EH)21
4.2.7.ControlDTCSetting(85H)21
4.2.8.ReadDataByIdentifier(22H)23
4.2.9.WriteDataByIdentifier(2EH)24
4.2.10.InputOutputControlByIdentifier(2FH)26
4.2.11.ClearDiagnosticInformation(14H)27
4.2.12.ReadDTCInformation(19H)28
4.2.13.RoutineControl(31H)35
4.2.14.RequestDownLoad(34H)37
4.2.15.TransferData(36H)37
4.2.16.RequestTransferExit(37H)37
5.故障定义38
6.故障码DTC中英文对照表38
附录A:
冻结帧信息40
附录B:
42
B.1版本信息参数列表:
42
3
北京新能源汽车股份有限公司
B.2数据流参数列表:
42
B.3版本信息参数定义44
B.4数据流参数定义46
4
北京新能源汽车股份有限公司
术语
DTC故障诊断码
BSBlocksize
STminMinimumSeparationTime
C有条件的
M强制性执行
U用户选用
TBD待定义
SID服务标识符
DID数据标识符
NRC负响应码
UDS统一的诊断服务
Server服务器
Client客户端
ECU电控单元
1.参考文献
NO.参考文档题目
[1]ISO11898-1:
Roadvehicles-Controllerareanetwork(CAN)
2003Part1:
Datalinklayerandphysicalsignaling
[2]ISO11898-2:
Roadvehicles-Controllerareanetwork(CAN)
2003Part2:
High-speedmediumaccessunit
[3]ISO11898-5:
Roadvehicles-Controllerareanetwork(CAN)
2007Part5:
High-speedmediumaccessunitwithlow-powermode
[4]ISO15765-2:
RoadVehicle-DiagnosticonCAN
2004Part2:
NetworkingLayerServices
[5]ISO15765-3:
RoadVehicle-DiagnosticonCAN
2004Part3:
ApplicationLayerServices
[6]ISO14229-1:
RoadVehicle-DiagnosticSystemsDiagnosticServices
2006Specification
[7]ISO15031-6:
Roadvehicles-Communicationbetweenvehicleand
2005
externalequipmentforemission-relateddiagnostic
Part6:
Diagnostictroublecodedefinitions
2.网络拓扑
5
北京新能源汽车股份有限公司
“由网络工程师统一发布网络拓扑”
Fig1.C70GB-2014整车网络拓扑结构
3.诊断接口
Fig2.OBD诊断接口
管脚描述
1EVBUSCAN_H
2/
6
北京新能源汽车股份有限公司
3
/
4
接地
5
接地
6
/
7
/
8
/
9
EVBUSCAN_L
10
/
11
/
12
/
13
/
14
/
15
/
16
电源
Tab1.OBD诊断接口针脚定义
“由线束工程师统一发布OBD接口定义”
4.诊断需求
4.1.诊断协议
4.1.1.物理层
物理层应满足ISO11898-2要求及北京新能源汽车股份有限公司企业标准《新能源汽车高速CAN网络节点级电子控制单元(ECU)技术要求》要求。
4.1.2.数据链路层
数据链路层应满足ISO11898-1要求。
所有诊断请求和应答帧的数据长度应为8字节,否则电控单元将忽略该诊断请求帧。
当诊断响应长度不足8字节时,空余的字节应用0xAA填充。
4.1.3.网络层
网络层应满足ISO15765-2要求和下述要求:
7
北京新能源汽车股份有限公司
4.1.3.1.寻址方式
可以支持物理寻址和功能寻址。
诊断消息ID描述见下表:
控制器名称
简称
物理寻址诊断请求
诊断响应
功能寻址诊断请求
实施网段
ID(Hex)
ID(Hex)
ID(Hex)
驱动电机控制器
MCU
0x7E0
0x7E8
0x7DF
EVBUS
Tab2.诊断ID列表
“由网络工程师统一发布所有诊断ID分配,各系统填写各自的诊断ID至上表”
4.1.3.2.网络层时间参数
Parameter
Value
Unit
BS
8
-
STmin
20
ms
Parameter
Timeout
PerformanceRequirement
Unit
N_As/N_Ar
70
n/a
ms
N_Br
n/a
<70
ms
N_Bs
150
n/a
ms
N_Cs
n/a
<70
ms
N_Cr
150
n/a
ms
Tab3.
网络层时间参数需求
4.1.4.应用层时间参数
Parameter
Min
Max
Timeout
Unit
P2server
0
50
n/a
ms
P2client
n/a
n/a
150
ms
P2*server
0
2000
n/a
ms
P2*client
n/a
n/a
5000
ms
P3client_phys2
P2server
n/a
n/a
ms
P3client_func
P2server_max
n/a
n/a
ms
Parameter
Min
Nominal
Timeout
Unit
S3server
n/a
n/a
5000
ms
S3client
0
2000
4000
ms
Tab4.
应用层时间参数需求
4.2.DiagnosticServices(ISO14229-1)
ServicesshallbeimplementedaccordingtoISO14229-1.Additionaldetailsare
8
北京新能源汽车股份有限公司
specifiedinthissection.
4.2.1.SupportedDiagnosticServices
TheoverviewofECUsupporteddiagnosticservicesisdescribedinthefollowingtable.
Table5SupporteddiagnosticservicesofECU
DiagnosticServicesList
Session
Secur
Addressing
SID
Defa
Exten
Program
ity
Physical
Function
ServiceName
ming
Acce
(Hex)
ult
ded
ss
Address
Address
10
DiagnosticSession
√
√
√
√
√
Control
11
EcuReset
√
√
√
√
√
27
SecurityAccess
√
√
√
28
CommunicationContr
√
√
√
ol
3E
TesterPresent
√
√
√
√
√
85
ControlDTCSetting
√
√
√
22
ReadDataByIdentifier
√
√
√
√
2E
WriteDataByIdentifie
√
√
√1
√
r
√3
2F
InputOutputControlB
√
√1
√
yIdentifier
14
ClearDiagnosticInfor
√
√
√
mation
19
ReadDTCInformation
√
√
√
31
RoutineControl
√
√
√1
√
√3
34
RequestDownLoad
√
√3
√
36
TransferData
√
√3
√
37
RequestTransferExit
√
√3
√
说明:
访问权限√1表示需要扩展安全级权限,√3表示需要编程安全级权
限。
TheservicesneedtosupportsuppressPositveResponseBit(SPRS)areshowedinfollowingtable.
Tab5.ServicessupportedSPRSbitDiagnosticServicesList
Support
SID
ServiceNameSPRSbit
(Hex)
10DiagnosticSessionControl√
9
Tab6.
北京新能源汽车股份有限公司
DiagnosticServicesList
Support
SID
ServiceName
SPRSbit
(Hex)
11
EcuReset
√
27
SecurityAccess
28
CommunicationControl
√
3E
TesterPresent
√
85
ControlDTCSetting
√
22
ReadDataByIdentifier
2E
WriteDataByIdentifier
14
ClearDiagnosticInformation
19
ReadDTCInformation
2F
InputOutputContorlByIdentifier
31
RoutineControl
34
RequestDownload
36
TransferData
37
RequestTransferExit
ThenegativeResponseCodes(NRC)usedbyECUaredefinedasfollows:
NegativeResponseCodes
NRC(Hex)
Description
11H
serviceNotSupported
12H
subFunctionNotSupported
13H
incorrectMessageLengthOrInvalidFormat
22H
conditionsNotCorrect
24H
requestSequenceError
36H
exceededNumberOfAttempts
31H
requestOutOfRange
33H
securityAccessDenied
37H
requiredTimeDelayNotExpired
35H
InvalidKey
72H
generalProgrammingFailure
78H
responsePending
7FH
serviceNotSupportedInActiveSession
92H/93H
VoltageTooHigh/voltageTooLow
7EH
subFunctionNotSupportedInActiveSession
IftwoormoreNRCsarereasonable,theECUcouldsendthenegativeresponse
10
北京新能源汽车股份有限公司
messageaccordingtothefollowingpriorityrules:
The7FhNRChavethehighestpriority;
Forothers,theNRCwithsmallernumberhashigherpriority.
4.2.2.DiagnosticSessionControl(10H)
Thisserviceisusedbytheclienttoenabledifferentdiagnosticsessionsintheserver(s).Adiagnosticsessionenablesaspecificsetofdiagnosticservicesintheserver(s).
4.2.2.1.MessageFormat
Request:
ByteName
#1RequestServiceIdentifier
Sub-function=[
CvtValue(hex)
M10
#2
DefaultSession
ProgrammingSession
ExtendedDiagnosticSession]
01
M
02
03
PositiveResponse:
ByteName
#1PositiveResponseServiceIdentifier
Sub-Function=[
#2DefaultSession
ProgrammingSession
ExtendedDiagnosticSession]
P2server[]=[
#3
byte#1
#4
byte#2]
P2*server[]=[
#5
byte#1
#6
byte#2]
TimingP2servervalueisprovidedin1msresolution.
TimingP2*servervalueisprovidedin10msresolution.
CvtValue
M50
M01
02
03
M
00-FF
M
00-FF
M00-FF
M00-FF
NegativeResponse:
Byte
Name
Cvt
Value
#1
NegativeResponseServiceIdentifier
M
7F
#2
RequestServiceIdentifier
M
10
#3
NegativeResponseCode
M
NRC
Sub-functionParameterDefinition
HEXDescriptionCvt
01DefaultSessionM
Thisdiagnosticsessionenablesthedefaultdiagnosticsessionintheserver(s)anddoesnotsupportanydiagnosticapplicationtimeouthandlingprovisions.(e.g.noTesterPresentserviceis
11
北京新能源汽车股份有限公司
necessarytokeepthesessionactive).
02
ProgrammingSession
M
Thisdiagnosticsessionenablesalldiagnosticservicesrequiredto
supportedthememoryprogrammingofaserver.
03
ExtendedDiagnosticSession
M
Thisdiagnosticsessioncane.g.beusedtoenablealldiagnostic
servicesrequiredtosupporttheadjustmentoffunctionslike
“Idle
Speed,COValue,etc.
”intheserver
’smemory.Itcanalsobeused
toenablediagnosticservices,whicharenotspecificallytiedtothe
adjustmentoffunctions.
NegativeResponseCodes(NRC)
NRC(Hex)
Description
Cvt
12
Thesub-functionparameterintherequestmessageisnotsupported.
M
13
Thelengthofthemessageiswrong.
M
22
TheECUcurrentconditionsdonotallowthechangeofdiagnostic
M
Session.
4.2.2.2.ImplementationRules
Thisserviceisusedbythediagnostictooltoenabledifferenttypesofdiagnosticsessionsinaserver.Inordertoexecuteadiagnosticservicetheappropriatesessionhastobestartedfirst.Thereshallbeonlyonediagnosticsessionactiveatatime.
Normal/DefaultSession(01h)shallbeenabledautomaticallybytheECUifnodiagnosticsessionhasbeenrequestedatpowerup.
TheECUshallreturntoNormal/DefaultSession(01h)aftertimeoutofExtendedDiagnosticSession.
TheECUshallbecapableofprovidingalldiagnosticfunctionalitydefinedforthedefaultdiagnosticsessionundernormalopera