APP下载

基于AUTOSAR规范的VPC控制器CAN通讯程序在整车上的应用

2019-10-21罗朗,王志强,于阔,朱联邦,许宽林,尹爱霞

汽车实用技术 2019年23期

罗朗,王志强,于阔,朱联邦,许宽林,尹爱霞

摘 要:日趋复杂的汽车电子系统所带来的开发和维护成本,成为众多汽车电子企业面临的难题,AUTOSAR技术成为这一难题最有效的解决方案,其目的是建立标准的软件架构,并定义统一的标准接口,实现软硬件的分离。文章按照AUTOSAR基础软件的开发规范和开发要求,开发了基于MSCAN硬件模块的驱动层和接口层。文章介绍了符合AUTOSAR规范的通信模块开发技术,然后结合整车VPC(真空泵控制器)CAN通讯程序对驱动层和接口层进行进一步阐述。通过实车验证测试,结合通信程序应用层应用实例,更直观的领悟到软硬件分离的益处。

关键词:AUTOSAR;硬件;软件;CAN

中图分类号:U463.6  文献标识码:A  文章编号:1671-7988(2019)23-114-04

Application of VPC controller CAN communication program based on

AUTOSAR specification in the whole vehicle

Luo Lang, Wang Zhiqiang, Yu Kuo, Zhu Lianbang, Xu Kuanlin, Yin Aixia

( Technology Center, Anhui Jianghuai Automobile Co., Ltd., Anhui Hefei 230601 )

Abstract: The development and maintenance cost of the increasingly complex automotive electronic system, Become a problem faced by many automotive electronic enterprises, AUTOSAR technology is the most effective solution to the problem, Its purpose is to establish a standard software architecture, And define unified standards, Separation of hardware and software. According to the development specifications and requirements of AUTOSAR basic software, the driver kayer and interface layer based on MSCAN hardware module are developed. This paper introduces the development technology of communication module in accordance with AUTOSAR specification. Then combining with the can communication program of the vacuum pump controller, the driving layer and the interface layer are further elaborated. Pass the real vehicle verication test, combined with the application layer instance of communication program, the benefits of hardware and software seperation can be realized more intuitively.

Keywords: AUTOSAR; Hardware; Software; CAN

CLC NO.: U463.6  Document Code: A  Article ID: 1671-7988(2019)23-114-04

引言

电子技术在汽车上的应用几乎无处不在,电子设备的增多使汽车电子的复杂度呈指数增长,为减少软件的重复开发,降低维护成本,AUTOSAR规范應运而生。

CAN模块是汽车应用的多节点通讯总线,具有传输速率高、抗干扰能力强、实时性好等优点,是当前汽车最常用的通讯方式.但其具有软件复杂性较高的特点。

1 AUTOSAR模块介绍

AUTOSAR架构由应用软件组件(SW-Cs)、虚拟功能总线(VFB)、运行实时环境(RTE)和电控单元基础软件(BSW)栈构成的分层结构,如下图所示:

图1  AUTOSAR框架结构图

AUTOSAR的基本设计概念是实现应用软件组件(SW-Cs)与基础软件(BSW)的隔离,顶层为应用层,是相互交互的应用/应用软件组件的集合;底层为微控制器硬件;中间层由AUTOSAR运行时环境(RTE)和一套完整的被称为AUTOSAR BSW的基础软件栈组成,作为独立于硬件的应用软件集成平台。……

登录APP查看全文