Adaptive AUTOSAR Diagnostic Manager模块介绍(一)

在AutoSar中,要完成一个诊断模块需要的依赖为:

  • 1.基础的应用管理:包括初始化以及进程状态管理
    2.中间层通讯:ara::com 需要应用程序提供故障记忆、寿命数据、例行控制等所需信息,通常这些是由模块Socal、SomeIpBinding和IpcBinding组成
    3.ara::per : 用来存储数据保存,比如开机的参数、永久存储的数据等
    4.ara::em : 进程管理模块的管理
    5.ara::log : 日志管理
    6.Libjason: 解析jason的文件格式
    7.Libvector : vector容器用来存储和处理消息的内容等
    8.Thread : 线程创建等
    9.iostream: 输入输出模块

Diagnostic Manager 模块在Autosar的架构设计:

  1. UDS 服务 诊断服务提供
  2. ara::diag autosar诊断模块的库
  3. UDSTransportProtocolApi UDS传输协议的c++ 接口
  4. DoIp 实现数据的传输

架构图如下所示:
在这里插入图片描述
autosar软件设计:
在这里插入图片描述
解释下上边的架构:
Autosar应用程序的诊断模块分为许多的软件端。每个软件端代表具有自己诊断地址的独立诊断实体。
DM为每个安装的软件端提供一个专用的诊断服务器实例。所有诊断
服务器实例共享一个传输层实例(例如TCP/IP端口13400上的DoIP)。这个
DM根据接收到的目标向软件集群发送传入的UDS请求地址,并将请求转发给负责的诊断服务器实例。
介绍下DoIP
DoIP传输协议是通过以太网从诊断服务器传输诊断数据的协议客户端连接到ECU.
DoIP子组件:

  • Socket Handling: UDP 或者 TCP socket构建通讯
  • Message Validation: 消息验证,一系列的接口可以校验消息的确认
  • Vehicle Identification: ECU端的识别和认证
  • Node Information: 当前端点的状态
  • Routing Activation: DoIP客户端管理
  • Diagnostic Messages: 诊断消息的实体

诊断客户端和DoIP子组件之间的通信通过UDP和TCP套接字
AUTOSAR定义的接口API:
GetConversation(meta_info) 得到一个诊断会话
GetAllConversations() 得到所有的诊断会话
GetCurrentActiveConversations() 得到当前的会话
SetActivityNotifier(activity_status_notifier) 设置对话通知状态
GetActivityStatus() 得到当前的状态

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
=============================================================================== 1. Installation =============================================================================== 1.1 Redhat/Fedora systems: -------------------------- To install MONyog on these systems the RPM package should be used. Execute the following command as 'root' user: # rpm -ivh .rpm After installing, MONyog will be started automatically as a daemon/service. You can immediately start monitoring your MySQL servers by pointing your browser to: http://:5555 By default, MONyog listens on port 5555. There is no default password. Of course, the port and password are configurable. Please refer to the section "2. Configuring MONyog in Linux" for details. The 'service' command can be used to start/stop MONyog. The details about how to start/stop MONyog can be found in section: "3. START/STOP MONyog". 1.2 Other systems (such as systems like SUSE, Ubuntu, etc): ----------------------------------------------------------- To install MONyog on these systems the .tar.gz (tarball) package should be used. After downloading the package, the following command can be used to extract: $ tar -xf .tar.gz This will extract the package contents to the directory "MONyog/". Details about how to start/stop MONyog can be found in section: "3. START/STOP MONyog". =============================================================================== 2. Configuring MONyog on Linux =============================================================================== MONyog port and password are configurable through "MONyog.ini". If MONyog was installed from the RPM package, MONyog.ini can be found in: /usr/local/MONyog If MONyog is extracted from the tarball (.tar.gz package), MONyog.ini can be found in the directory where MONyog was extracted. The content of this file looks like: [GENERAL] port=5555 password=mypasswd N
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值