P6
P6用于UDSonIP,P6的概念和P2很像,都是发送方等待接收方的响应的时间,不同之处在于P2是刚开始接收到响应即停止,P6是响应完全接收完毕才停止。车载以太网因为本身实时性就不如CAN这一类的网络,还可能涉及到路由转发,所以网络延迟可能比较长,所以有时候需要考虑P6。
P4Server
P4Server这个时间参数其实不只是UDSonIP用到,UDSonCAN也可能用到,但用的比较少。它的含义是ECU接收到诊断请求后到最终的诊断肯定响应或否定响应(不包含NRC 0x78)的时间间隔,它是对ECU性能的要求,目的是防止ECU长时间返回NRC 0x78的否定响应。
当P4Server_max=P2Server_max时,就意味着不允许ECU返回NRC 0x78的否定响应。
The parameter tP4_Server_Max shall be the maximum value of tP4_Server and if tP4_Server_Max is the same as tP2_ Server_Max, this shall be interpreted as that a negative response with negative response code 0x78“requestCorrectlyReceived-ResponsePending” is not allowed for the service in progress.
当P4Server_max>P2Server_max时,允许ECU返回NRC 0x78的否定响应。
ISO 14229-2 标准中还规定,连续返回NRC 0x78时,时间间隔不能小于0.3 * P2*Server_max,以避免网络中存在过多不必要的否定响应。
更多内容可以参考: