UDS诊断升级流程记录详解
注意下面
如果有车载讨论需要的小伙伴,可以私信加我微信
,拉你进群,和同行业大佬交流
注意上面
前言
最近打算把14229的诊断升级流程学习一下,找同事学习了相关流程
防止以后有需求,也算是分享给初学者
一、具体log解析
1.流程报文解析:
首字节高4位,0:单帧,1:首帧,2:连续帧,3:流控帧
Tx d 8 02 3E 80 00 00 00 00 00 ID = 2015 //3E保持会话
Tx d 8 02 10 83 00 00 00 00 00 ID = 2015 //10 03进入扩展会话 83抑制正响应
Tx d 8 02 85 82 00 00 00 00 00 ID = 2015 //85 02停止DTC记录 82抑制正响应
Tx d 8 03 28 83 03 00 00 00 00 ID = 2015 //28 03 03关闭网络应用报文和管理报文的发送和接收,83抑制正响应
Tx d 8 02 10 02 00 00 00 00 00 ID = 1906 //10 02进入编程会话(进入boot)
Rx d 8 06 50 02 00 32 00 C8 00 ID = 1914 // 50 02回复肯定响应+40
Tx d 8 02 27 03 00 00 00 00 00 ID = 1906 //27 03请求种子(解锁)
Rx d 8 06 67 03 34 DE 8C CF 00 ID = 1914 //67 03回复肯定响应+40,后面4个字节是种子
Tx d 8 06 27 04 7A 7A AE 87 00 ID = 1906 //24 04发送秘钥,后面4个字节是key
Rx d 8 02 67 04 00 00 00 00 00 ID = 1914 //67 04回复肯定响应+40,解锁成功
Tx d 8 07 2E F1 99 23 04 25 00 ID = 1906 //2E F1 99,2E写入服务,F1 99为did,后面是写入数据
Rx d 8 03 6E F1 99 00 00 00 00 ID = 1914 //6E F1 99肯定响应+40,
············································
Tx d 8 01 37 00 00 00 00 00 00 ID = 1906 // 37 退出传输
Rx d 8 01 77 00 00 00 00 00 00 ID = 1914
Tx d 8 10 08 31 01 02 02 53 5B ID = 1906 //31 01自定义功能 01开启 ,31 01 后两个字节是rid(校验)
Rx d 8 30 00 00 00 00 00 00 00 ID = 1914
Tx d 8 21 8C 4F 00 00 00 00 00 ID = 1906
Rx d 8 03 7F 31 78 00 00 00 00 ID = 1914 //7F 31 78是否定响应码
Rx d 8 05 71 01 02 02 04 00 00 ID = 1914 //71 01肯定响应
Tx d 8 10 0D 31 01 FF 00 44 00 ID = 1906 //31 01自定义功能 01开启 ,31 01 后两个字节是rid(擦除),44是擦除地址长度和擦除数据长度
············································
Tx d 8 02 3E 80 00 00 00 00 00 ID = 2015 //3E保持会话
············································
Tx d 8 10 0B 34 00 44 00 02 00 ID = 1906 //34 请求下载, 0 0B代表需要发送的数据长度,44后面代表前4个字节是写入地址,后四个字节是需要写入数据的大小
Rx d 8 30 00 00 00 00 00 00 00 ID = 1914
Tx d 8 21 00 00 16 00 00 00 00 ID = 1906 //21中2代表连续帧,1计数,第一次发送时为21,后续数据累加到F后,重新按0开始。这里可以看到写入地址为00 02 00 00,写入数据长度为 00 16 00 00
Rx d 8 04 74 20 04 02 00 00 00 ID = 1914 //34正响应
Tx d 8 14 02 36 01 00 EF 01 20 ID = 1906 //开始下载 //4 02代表需要发送的数据的长度
Rx d 8 30 00 00 00 00 00 00 00 ID = 1914
············································
············································
Tx d 8 2E 00 79 04 02 00 79 04 ID = 1906
Tx d 8 2F 02 00 79 04 02 00 79 ID = 1906
Tx d 8 20 04 02 00 79 04 02 00 ID = 1906 //重新计数为20,
Tx d 8 21 79 04 02 00 79 04 02 ID = 1906
Tx d 8 22 00 79 04 02 00 79 04 ID = 1906
············································
············································
Tx d 8 21 FF FF FF FF FF FF FF ID = 1906
Tx d 8 22 FF 29 F8 73 5B 00 00 ID = 1906
Rx d 8 02 76 80 00 00 00 00 00 ID = 1914 //36肯定响应
Tx d 8 01 37 00 00 00 00 00 00 ID = 1906 //37退出下载
Rx d 8 01 77 00 00 00 00 00 00 ID = 1914
Tx d 8 10 08 31 01 02 02 69 05 ID = 1906
Rx d 8 30 00 00 00 00 00 00 00 ID = 1914
Tx d 8 21 33 2D 00 00 00 00 00 ID = 1906
Rx d 8 03 7F 31 78 00 00 00 00 ID = 1914
Tx d 8 02 3E 80 00 00 00 00 00 ID = 2015
Tx d 8 02 3E 80 00 00 00 00 00 ID = 2015
Rx d 8 05 71 01 02 02 05 00 00 ID = 1914
Tx d 8 04 31 01 FF 01 00 00 00 ID = 1906
Rx d 8 03 7F 31 78 00 00 00 00 ID = 1914
Rx d 8 05 71 01 FF 01 05 00 00 ID = 1914
Tx d 8 02 11 01 00 00 00 00 00 ID = 1906 //11 01 复位软重启
Rx d 8 02 51 01 00 00 00 00 00 ID = 1914
Tx d 8 02 3E 80 00 00 00 00 00 ID = 2015
Tx d 8 02 10 83 00 00 00 00 00 ID = 2015 //10 83 进入扩展会话
Tx d 8 03 28 80 03 00 00 00 00 ID = 2015 //28 00 03开启网络应用报文和管理报文的发送和接收,83抑制正响应
Tx d 8 02 85 81 00 00 00 00 00 ID = 2015 //85 01 开启DTC记录,81抑制正响应
Tx d 8 02 10 01 00 00 00 00 00 ID = 1906 //进入默认会话
Rx d 8 06 50 01 00 32 01 F4 00 ID = 1914 //正响应
Tx d 8 04 14 FF FF FF 00 00 00 ID = 2015 //14 FF FF FF清除所有存储DTC
Rx d 8 01 54 00 00 00 00 00 00 ID = 1914 //正响应
写在结尾
我是一名车载集成测试开发工程师,希望能和志同道合的朋友一起相互学习进步