UDS 服务器响应实施规则(Server response implementation rules) 未完待续。。。

本文详细介绍了服务器响应机制,包括响应消息指示位的含义及其应用场景,如何时发送正响应消息及负响应消息。此外还探讨了特定条件下不发送负响应消息的情况,并解释了服务器如何检查请求消息的有效性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一,概览:

AbbreviationDescription
suppressPosRspMsgIndicationBitTRUE = server shall NOT send a positive response message (exception see Annex A.1 in definition of NRC 0x78)
FALSE = server shall send a positive or negative response message
PosRspAbbreviation for positive response message
NegRspAbbreviation for negative response message
NoRspAbbreviation for NOT sending a positive or negative response meesage
NRCAbbreviation for negative response code
ALLAll of the requested data-parameters of the client request message are supported by the server
At least 1At least 1 data-parameter of the client request message must be supported by the server
NoneNone of the requested data-parameter of the client request message is supported by the server

1. 服务器会响应它支持的诊断服务,而不管是什么地址模式(物理地址还是功能地址);
2. 根据以下子项表的要求,当功能寻址消息的消极响应消息中具有SNS (serviceNotSupported), SNSIAS (serviceNotSupportedInActiveSession), SFNS (sub-functionNotSupported), SFNSIAS (sub-functionNotSupportedInActiveSession), and ROOR (requestOutOfRange) 等消极响应码时,此消极响应消息将不会发送(NRC0x78定义中的附件A.1)不应发送。(例外见附件A.1中NRC 0x78的定义)。

二,服务器响应流程图

General server response behaviour


三,带子功能参数的请求消息的服务器响应流程图

服务器会检查最小长度(最小为2,SID+SubFunction Parameter),该子功能是否适用于此SID等等。

 General server response behaviour for request messages with sub-function parameter


未完待续。。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值