基于RTW的AMT代码自动生成技术研究
本文选题:AMT 切入点:RTW 出处:《山东大学》2012年硕士论文
【摘要】:随着汽车电子控制系统的发展,整车集成了越来越多的功能,汽车电子控制系统越来越复杂。汽车电控技术以嵌入式软件为依托,功能的日趋复杂给软件开发带来了极大的难度,传统的汽车电控系统软件开发模式越来越受到限制。AMT技术是自动变速技术的发展方向,是现今各大汽车厂家着重发展的核心。因此,如何寻求一种快速、高效的开发流程是各大厂家一直努力追求的目标。本文针对AMT系统的典型特点,介绍了基于模型设计的代码生成方法,并使用Matlab/RTW代码生成工具实现AMT系统的代码生成。 本文首先对AMT技术和汽车电子软件的发展做简要介绍,并分析了传统开发模式存在的弊端,以及基于模型设计的优势所在。其次介绍了AMT系统的硬件平台设计方案,以及软件系统架构。分析了AMT系统基本工作原理。然后研究了Matlab/RTW的二次开发技术,主要包括如何编写S函数以及TLC文件等知识,并利用RTW工具箱开发符合本文AMT硬件平台的设备驱动模块,完成了对设备底层驱动模块的封装,并研究生成的代码。本文还根据AMT系统的典型事件驱动架构,对系统应用层进行层次划分,并使用MATLAB/Stateflow进行AMT系统建模。完成了对模型的代码生成以及整合,对生成的代码进行台架和道路测试,并分析采集的试验数据,验证模型代码的可行性。 试验证明,采用模型化的设计方法,结构清晰,方便进行功能扩展与裁剪。代码生成技术可以加快开发流程,减少手工编写代码的劳动强度,同时避免手动编写产生的人为错误。生成的代码清晰、高效,接近手写代码。具有一定实用性。
[Abstract]:With the development of automotive electronic control system, the whole vehicle integrates more and more functions, and the automotive electronic control system becomes more and more complex.The automotive electronic control technology relies on embedded software, and the increasingly complex function brings great difficulty to the software development. The traditional software development mode of automobile electronic control system is more and more restricted. AMT technology is the development direction of automatic speed change technology.Is now the major automobile manufacturers focus on the development of the core.Therefore, how to seek a rapid and efficient development process is the goal that major manufacturers have been striving to pursue.According to the typical characteristics of AMT system, this paper introduces the code generation method based on model design, and uses Matlab/RTW code generation tool to realize code generation of AMT system.This paper first introduces the development of AMT technology and automotive electronic software, and analyzes the disadvantages of traditional development mode and the advantages of model-based design.Secondly, the hardware platform and software architecture of AMT system are introduced.The basic working principle of AMT system is analyzed.Then, the secondary development technology of Matlab/RTW is studied, including how to write S function and TLC file, and how to develop the device driver module according to the AMT hardware platform by using RTW toolbox, and complete the encapsulation of the device bottom driver module.And study the generated code.According to the typical event-driven architecture of AMT system, this paper divides the application layer into layers, and uses MATLAB/Stateflow to model the AMT system.The code generation and integration of the model are completed, the generated code is tested on a bench and a road, and the collected test data are analyzed to verify the feasibility of the model code.It is proved by experiment that the structure is clear and the function can be extended and clipped easily by using the model design method.Code generation technology can speed up the development process, reduce the labor intensity of manual coding, and avoid human errors caused by manual writing.The generated code is clear, efficient, and close to handwritten code.It has certain practicability.
【学位授予单位】:山东大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP368.1;TP273
【参考文献】
相关期刊论文 前10条
1 文凌波,王玉海,李兴坤,薛春宇;基于MATLAB/STATEFLOW的AMT控制策略仿真系统[J];车辆与动力技术;2005年01期
2 汪伟华;时国平;;车辆机械式自动变速器控制系统的研制[J];工业仪表与自动化装置;2009年04期
3 时亚忠;王旭永;张红伟;;采用C MEX S函数编写xPC环境下设备驱动模块的研究[J];测控技术;2006年07期
4 戴海峰;魏学哲;孙泽昌;;V-模式及其在现代汽车电子系统开发中的应用[J];机电一体化;2006年06期
5 李洪斌;张承瑞;;基于量子框架的开放式汽车电控系统体系结构[J];吉林大学学报(工学版);2006年02期
6 冯江波;刘亚军;;与AUTOSAR兼容的Matlab/Simulink自动代码生成技术[J];佳木斯大学学报(自然科学版);2011年06期
7 赵彦斌;钟再敏;;基于代码自动生成技术的汽车电子实时控制软件开发[J];计算机辅助工程;2008年03期
8 王亚宁;董小瑞;;汽车电子技术现状及发展趋势展望[J];机械管理开发;2007年01期
9 李秀萍;董云卫;;模型驱动的嵌入式仿真系统设计[J];计算机工程;2010年16期
10 王奇霞,乔海泉,梁加红;在RtLinux下利用S函数和TLC开发内嵌驱动程序[J];计算机仿真;2003年03期
相关博士学位论文 前2条
1 李洪斌;基于量子框架的开放式重型汽车AMT系统关键技术研究[D];山东大学;2006年
2 李晓军;基于量子框架的开放式汽车电控系统体系架构及其应用研究[D];山东大学;2008年
相关硕士学位论文 前7条
1 解洪林;AMT故障自诊断系统研究[D];山东大学;2011年
2 蔡毅;基于MATLAB/RTW实时仿真系统的设计与研究[D];天津大学;2005年
3 吕攀;SmartAMT:基于SmartOSEK OS的汽车电控机械式自动变速箱控制系统[D];浙江大学;2006年
4 高权;基于Simulink和Stateflow建模的嵌入式软件开发平台研究[D];电子科技大学;2008年
5 赵家强;基于UML的AMT系统建模与实现[D];合肥工业大学;2008年
6 兰欣;电控柴油机控制模拟平台的研究[D];山东大学;2008年
7 王彪;面向汽车电子的嵌入式软件开发基本平台关键技术研究与实现[D];电子科技大学;2010年
,本文编号:1710187
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1710187.html