星期六, 07 03月 2020 16:17

ISO 14229-1 道路车辆统一诊断服务简述

ISO 14229-1 UDS在各种数据链路的未来实现

概述
  定义诊断系统的通用需求-与数据链路无关的诊断服务  




OSI各层

 增强的诊断服务 (与排放无关〉



应用层


ISO 14229-1I ISO 15765-3


ISO 14229-1I其它标准




表示层










会话层


ISO 15765-3







传输层


ISO 15765”2







网络层


ISO 15765-2







数据链路层


ISO 11898-1







物理层


ISO 11898







 
ISO 14229-1 UDS在各种数据链路的未来实现



                    
ISO 14229-1统一诊断.规范和需求




  ISO 15765-3
  CAN 诊断      


            未来
无线诊断 LAN  

     
Flexray诊断 

...     



 
应用层接口服务
 .应用层服务概述

服务原语(6个)


 请求 request
 请求_确认 req_confirm
 指示 indication
 响应 response
 响应一确认 rsp_confirm
 确认 conf irm


  有确认服务
  无确认服务

 
 有确认服务
   
客户端应用层 (Client)       服务器端应用层(Server)
service_name.request, service_name.req_confirm,service  name.confirm,service  name.indication,service_name.response,service_name.rsp_confirm

 无确认服务

服务原语的格式
All application layer services have the same general format. Service primitives are written in the form:
service_name.type (
parameter A,parameter B, parameter C
[,parameter 1, ...]
)
 
where:
⎯ “service_name” is the name of the diagnostic service (e.g. DiagnosticSessionControl);
⎯ “type” indicates the type of the service primitive (e.g. request);
⎯ “parameter A, ...” is the A_SDU as a list of values passed by the service primitive (addressinginformation);
⎯ “parameter A, parameter B, parameter C” are mandatory parameters that shall be included in all servicecalls;
⎯ “[,parameter 1, ...]” are parameters that depend on the specific service (e.g. parameter 1 can be thediagnosticSession for the DiagnosticSessionControl service). The brackets indicate that this part of theparameter list may be empty.
 

request

service_name.request (
SA,
TA,
TA_type,(枚举:用于描 述功能还是物 理寻址方式)
[RA,]  (远程地址,可选〉
[,parameter 1, ...]
)
 

indication

service_name.indication (
SA,
TA,
TA_type,
[RA,]  (远程地址,可选〉
[,parameter 1, ...]
)
 
service_name.request和service_name.indication中的[,parameter 1, ...]:原语中的数据 单元内容一致。
 

Response

service_name.response (
SA,
TA,
TA_type,
[RA,]  (远程地址,可选〉
Result
[,parameter 1, ...]

 

confirm

service_name.confirm (
SA,
TA,
TA_type,
[RA,]  (远程地址,可选〉
Result
[,parameter 1, ...]
)
 

request-confirm

service_name.req_confirm (
SA,
TA,
TA_type,
[RA,]  (远程地址,可选〉
Result
)
 

 response-confirm

service_name.rsp_confirm (
SA,
TA,
TA_type,
[RA,]  (远程地址,可选〉
Result
)
 
 车辆系统需求
 

客户 (Tester) 和服务器 C ECU) 统一编址
每一个Tester和ECU的地址是唯一的
RA  C 远程地址〉 独立分配 





外部测试设备


241  200


网关


10  62


远程服务器




主网络


远程网络




 
远程诊断示例1:Remote server example with remote network
The external test equipment sends a remote diagnostic request message with
⎯ SA = 241 (F1 hex),
⎯ TA = 200 (C8 hex), 
⎯ RA = 62 (3E hex).
The gateway receives the message and sends it out on the remote network with
⎯ SA = 10 (0A hex),
⎯ TA = 62 (3E hex),
⎯ RA = 241 (F1 hex).
The remote server receives the message.
The remote server sends back a remote diagnostic response message with
⎯ SA = 62 (3E hex),
⎯ TA = 10 (0A hex), 
⎯ RA = 241 (F1 hex).
The gateway receives the message and sends it out on the main network with
⎯ SA = 200 (C8 hex),
⎯ TA = 241 (F1 hex),
⎯ RA = 62 (3E hex).
The external test equipment receives the message.
 
远程诊断示例2(上图):Remote server example without remote network
The external test equipment sends a remote diagnostic request message with
⎯ SA = 241 (F1 hex),
⎯ TA = 200 (C8 hex),
⎯ RA = 62 (3E hex).
The gateway receives the message and passes it over to the remote server function. The remote serverreceives the message.
The remote server sends back a remote diagnostic response message by passing it to the gateway function.The gateway receives the message and sends it out on the main network with
⎯ SA = 200 (C8 hex),
⎯ TA = 241 (F1 hex),
⎯ RA = 62 (3E hex).
The external test equipment receives the message.
 远程诊断示例2:Remote client example with remote network

The external test equipment sends a remote diagnostic request message with
⎯ SA = 242 (F1 hex),
⎯ TA = 10 (0A hex),
⎯ RA = 18 (12 hex).
The gateway receives the message and sends it out on the main network with
⎯ SA = 200 dec,
⎯ TA = 18 dec,
⎯ RA = 242 dec.
The local server receives the message.
The local server sends back a remote diagnostic response message with
⎯ SA = 18 (12 hex),
⎯ TA = 200 (C8 hex),
⎯ RA = 242 (F1 hex).
The gateway receives the message and sends it out on the remote network with
⎯ SA = 10 (0A hex),
⎯ TA = 242 (F1 hex),
⎯ RA = 18 (12 hex).
The external test equipment receives the message.
 
应用层协议
 

A_SDU: 应用层服务数据单元

Application Layer Service Data Unit
SA, TA, TA_type  [,RA]  [,parameter1,...]

A_PDU : 应用层协议数据单元

Application Layer Protocol Data Unit SA, TA, TA_type  [,RA],A_Data
A_Data=A_PCl+[parameter1,...]

A_PCI: 应用层协议控制信息

Application Layer Protocol Control Information 

A_PUD = A_PCI+ A _SDU

 应用层协议控制信息

2种不同的格式 〈 由服务原语和Result参数决定〉
A_PCI (SI)

         SI: Service ID(Request服务和Result=positive的Response)      
           类型:1字节无符号整数
           范围:00~FF


A_PCl(NR_Sl,SI)


         NR_SI-Negative Service ID
          类型:1字节无符号整数
          范围:7F
 
服务标识符SI



服务标识Service identifier (hex value)
服务类型Service type (bit 6)
定义文档Where defined


00 – 0F
OBD service requests/ OBD 服务请求
ISO 15031-5


10 – 3E
ISO 14229 service requests/ ISO 14229服务请求
ISO 14229


3F
Not applicable 未应用
Reserved by document保留


40 – 4F
OBD service responses/  OBD 服务响应
ISO 15031-5


50 – 7E
ISO 14229 positive service responses/ ISO 14229服务肯定响应
ISO 14229


7F
Negative response service identifier 否定响应标识
ISO 14229


80
Not applicable未应用
Reserved by ISO 14229/ISO 14229保留


81 – 82
Not applicable未应用
Reserved by ISO 14230/ISO 14230保留


83 – 88
ISO 14229 service requests/ISO 14229服务请求
ISO 14229


89 – 9F
Service requests服务请求
Reserved for future expansion as needed为将来需求扩展保留


A0 – B9
Service requests服务请求
Defined by vehicle manufacturer汽车制造商定义


BA – BE
Service requests服务请求
Defined by system supplier 系统供应商定义


BF
Not applicable未应用
Reserved by document保留


C0
Not applicable未应用
Reserved by ISO 14229/ISO 14229保留


C1 – C2
Not applicable未应用
Reserved by ISO 14230/ISO 14230保留


C3 – C8
ISO 14229 positive service responses/ ISO 14229服务肯定响应
ISO 14229


C9 – DF
Positive service responses服务肯定响应
Reserved for future expansion as needed为将来需求扩展保留


E0 – F9
Positive service responses服务肯定响应
Defined by vehicle manufacturer汽车制造商定义


FA – FE
Positive service responses服务肯定响应
Defined by system supplier系统供应商定义


FF
Not applicable未应用
Reserved by document 保留



 

 请求服务标识符SI

类型:1字节无符号整数
范围:00~FF
请求服务的ID:  X0XXXXXX(第6位为0)
示例:ReadDTClnformation服务Request  0x19   B00011001
 

肯定响应服务标识符SI

类型:1字节无符号整数
范围:00~FF
肯定响应服务的ID:  X1XXXXXX  (第6位为1)
肯定响应服务的ID =请求服务的ID+0x40
示例:ReadDTClnformation服务Response 0x59 B01011001
 

否定响应服务标识符NR_SI

类型:1字节无符号整数
范围:7F
 
 Negative response A_PDU
Each diagnostic service has a negative response/negative confirmation message specified with messageEach diagnostic service has a negative response/negative confirmation message specified with messageA_Data bytes according to Table 3. The first A_Data byte (A_PCI.NR_SI) is always the specific negativeresponse service identifier. The second A_Data byte (A_PCI.SI) shall be a copy of the service identifier valuefrom the service request/indication message to which the negative response message corresponds.



A_PDU parameter
Parameter name
Cvt 约定
Hex value
Mnemonic


SA
Source Address
Ma
xx
SA


TA
Target Address
M
xx
TA


TA_type
Target Address type
M
xx
TA_type


RA
Remote Address (optional)
Cb
xx
RA


 


A_Data.A_PCI....

继续阅读完整内容

请查看下方广告以解锁文章剩余内容

广告加载中...
查看 24272 最后修改日期 星期二, 28 04月 2020 01:01

AI 智能舌象仪

Tongue imager rafavi

导航信号采集及测试设备

Portable singal acquisition and replay
 
Please support our site by viewing this advertisement.

Please support our site by viewing this advertisement

Free Content