面向FreeRTOS的AUTOSAR RTE设计与实现Design and Implementation of an AUTOSAR RTE for FreeRTOS
栗花伟,黄晶晶,张昱,许东辉,孙涛
摘要(Abstract):
针对汽车开放系统架构(AUTOSAR)工具链对商业操作系统依赖性高且对免费实时操作系统(FreeRTOS)适配不足的问题,提出了一种基于模块化架构的运行时环境(RTE)代码自动生成工具。该工具通过信息提取器、解析器、处理模板和代码生成器等模块,实现了FreeRTOS环境下符合AUTOSAR规范的RTE代码自动生成。测试结果表明,所生成代码在结构规范性、类型安全性和实时性能等方面满足工业级要求,单模块开发时间由8.2人时降至0.5人时,跨平台适配效率提升12.7倍。研究成果为智能汽车嵌入式软件开发提供了高效可靠的解决方案。
关键词(KeyWords):
基金项目(Foundation):
作者(Author): 栗花伟,黄晶晶,张昱,许东辉,孙涛
DOI: 10.19620/j.cnki.1000-3703.20250304
参考文献(References):
- [1] ZHENG B, YAO C. Automobile Profession Responds to the Development of Automobile Intelligence[C]//2023 8th International Conference on Cloud Computing and Big Data Analytics (ICCCBDA). Chengdu, China: IEEE, 2023: 419-423.
- [2]邹渊, 孙文景, 张旭东, 等 . 智能网联汽车多域电子电气架构技术发展研究[J]. 汽车工程, 2023, 45(6):895-909.ZOU Y, SUN W J, ZHANG X D, et al. Study on the Technology Development of Multi-Domain Electrical and Electronic Architecture for Intelligent Networked Vehicles[J]. Automotive Engineering, 2023, 45(6):895-909.
- [3] STARON M. Automotive Software Architectures[M]. Cham: Springer, 2021.
- [4] KUGLER L. Making Traffic a Thing of the Past[J]. Communications of the ACM, 2022, 66(1):19-20.
- [5] POPOVI?? V T, VULI?? M, DAVIDOVI?? A, et al. Modeling and Development of AUTOSAR Software Components[C]//2019 IEEE 23rd International Symposium on Consumer Technologies (ISCT). Ancona, Italy: IEEE, 2019: 313-316.
- [6] RAN Z, YAN H, ZHANG H M, et al. Approximate Optimal AUTOSAR Software Components Deploying Approach for Automotive E/E System[J]. International Journal of Automotive Technology, 2017, 18(6):1109-1119.
- [7] AUTOSAR. Specification of RTE Software[EB/OL]. (2024-11-27) [2025-05-09]. https://www. autosar. org/fileadmin/standards/R24-11/CP/AUTOSAR_CP_SWS_RTE.pdf
- [8]汪志鸿, 于德营, 马天泽, 等 . 车用操作系统技术现状及发展趋势[J]. 汽车工程, 2023, 45(6):910-921.WANG Z H, YU D Y, MA T Z, et al. Technical Status and Development Trend of Automotive Operating System[J]. Automotive Engineering, 2023, 45(6):910-921.
- [9]张可可, 周沛泽. 汽车控制器软件开发模式调研[J]. 汽车实用技术, 2021, 46(1):63-66.ZHANG K K, ZHOU P Z. A Survey on the Development Model of Automotive Controller Software[J]. Automotive Practical Technology, 2021, 46(1):63-66.
- [10] KHENFRI F, CHAABAN K, CHETTO M. Efficient Mapping of Runnables to Tasks for Embedded AUTOSAR Applications[J]. Journal of Systems Architecture, 2020, 110.
- [11] BELLA G, BIONDI P, COSTANTINO G, et al. Designing and Implementing an AUTOSAR-Based Basic Software Module for Enhanced Security[J]. Computer Networks, 2022, 218.
- [12] SMITH S, KHALID M A S. Automated Generation and Integration of AUTOSAR RTE Configurations[C]//2022 IEEE Canadian Conference on Electrical and Computer Engineering (CCECE). Halifax, NS, Canada: IEEE, 2022: 141-144.
- [13] ZHANG M M, TENG Y, KONG H, et al. Automatic Modelling and Verification of AUTOSAR Architectures[J]. Journal of Systems and Software, 2023, 201.
- [14] WEI J Y, GAO J J, MA W F, et al. An AUTOSARBased Framework for Multi-Core Communication System[C]//2024 2nd International Conference on Intelligent Metaverse Technologies & Applications (iMETA). Dubai, United Arab Emirates: IEEE, 2024: 214-221.
- [15] SU W X, XU S J, LIU F. Design of Collaborative Computing Mining Truck Automatic Driving System Based on AUTOSAR Adaptive Platform[C]//2022 International Conference on Computer Engineering and Artificial Intelligence (ICCEAI). Shijiazhuang, China: IEEE, 2022: 618-622.
- [16]郑燚, 张世民, 陆云龙 . 基于 AUTOSAR 的域控制器以太网通信系统设计实现[J]. 汽车工程, 2023, 45(6):965-973.ZHENG Y, ZHANG S M, LU Y L. Design and Implementation of Ethernet Communication System on ADAS Domain Controller Based on AUTOSAR[J]. Automotive Engineering, 2023, 45(6):965-973..
- [17]邱美涵, 王晓琳, 卞皓 . 基于 AUTOSAR 的电动汽车驱动电机控制系统设计与实现[J]. 汽车工程, 2018, 40(6):659-665.QIU M H, WANG X L, BIAN H. Design and Implementation of the Control System for the Traction Motor of Electric Vehicles Based on AUTOSAR[J]. Automotive Engineering, 2018, 40(6):659-665.
- [18] MITTAPALLI J S, ARTHUR M P. Survey on Template Engines in Java[J]. ITM Web of Conferences, 2021, 37.