基于嵌入式实时操作系统FreeRTOS和可变速率控制器局域网(Controller Area Network with Flexible Data Rate,CAN FD),设计并实现了基于统一诊断服务(Unified Diagnostic Services,UDS)协议的车辆诊断系统,包括微控制器程序、上位机测试程序和连接二者的支持CAN FD功能的USB/CAN转换器.微控制器程序设计使用嵌入式操作系统FreeRTOS建立软件框架,开发了传输层任务、应用层任务和CAN中断服务程序.上位机测试程序针对数据读写和在线编程功能进行重点测试.结果表明,该文使用的设计方案能满足ISO 14229-1-2020 规范中要求的响应时间要求,同时具有可靠、易于维护等优势.
Design scheme of on-board unified diagnostic service based on real-time operating system and controller area network with flexible data rate
Based on the embedded real-time operating system FreeRTOS and controller area net-work with flexible data rate(CAN FD),a vehicle diagnostic system based on the unified diagnostic serv-ices(UDS)protocol was designed and implemented,including a micro-controller program,an upper computer testing program,and a USB/CAN converter that supports CAN FD functionality connecting the two.The micro-controller program design uses the embedded operating system FreeRTOS to establish a software framework,and develops transport layer tasks,application layer tasks,and CAN interrupt serv-ice programs.The upper computer testing program focuses on testing the data read and write and online programming functions.The results indicate that the design scheme used in this article can meet the re-sponse time requirements in the ISO 14229-1-2020 specification,while also having advantages such as reliability and ease of maintenance.
controller area network with flexible data rateunified diagnostic servicesembedded real time kerneltransport protocolonline programming