前言
之前介绍了DID的配置,本文介绍UDS诊断中,另外一种常用的功能Routine的配置,及生成代码的使用。
Routine介绍
Routine一般用于ECU较复杂的控制功能。使用UDS服务ID为0x31
![image](https://img-blog.csdnimg.cn/img_convert/abca31a46dd971761910813f9bd0992a.png)
31后面跟的是子服务,标准规定有以下几种
![image](https://img-blog.csdnimg.cn/img_convert/7d59c779ba232994264a3a0ec2d3e274.png)
一般也就用0x01,0x02,0x03,分别对应开始例程,停止例程,请求结果
再后面跟的是Routine ID
![image](https://img-blog.csdnimg.cn/img_convert/4c9e54ee679d53b9ce3ca08d9a50bdfe.png)
有些Routine ID是标准定义的,例如0xFF00(擦除内存,一般在下载完SBL或Flashdriver之后执行)
再后面跟的是输入的参数,具体根据诊断服务表来定
![image](https://img-blog.csdnimg.cn/img_convert/8ba6d217af439b1ab3e24a5ef3aba301.png)
Routine配置
在Isolar软件中,配置Routine主要