当前位置:网站首页>【AutoSAR 十一 通信相关机制】
【AutoSAR 十一 通信相关机制】
2022-07-02 23:49:00 【柯宇谦】
AutoSAR 十一 通信相关机制
1. Signal Groups 信号组
将一些作用相近的信号放到一个组里面方便管理。
2. Update Bit 更新位
在Signal中将一个bit保留用做Update Bit

- 这个位是专门用来指示信号是否被应用层更新了,如果长时间没有被更新,就启动超时处理。
3. Notification Mechanisms 通知机制
通知类型
- 接收成功通知
- 发送成功通知
- 超时通知
- 错误通知
- 失效通知
- 更新位通知
通知具有一个重要属性:(这个属性是在Communication->PDUs中配置的)
- 立即通知(Immediate):就是接受/发送成功立即中断式的进入通知函数
- 延迟通知(deferred):不是马上就通知,在下一次在Task中调用Com_MainFunctionRx()或者Com_MainFunctionTx()的时候触发通知
4. Deadline Monitoring
4.1 超时监控
超时监控可以分为两个等级:
- IPDU级:当一个Rx IPDU没有在规定的时间内收到有效数据,就启动超时处理
- Signal级:就是之前我们说过的Update Bit的方式,如果没有收到Update Bit,就启动超时处理
- IPDU的Timeout Time的来源是在IPDU中的Signal的最小Timeout Time。比如也就是说IPDU中有两个Signal,Signal A的Timeout Time=100ms,Signal B的Timeout Time=50ms,那么这个IPDU的Timeout Time = 50ms
4.2 超时处理
COM的超时处理
• 超时之后会有一个超时的Notification被调用:Rte_COMCbkTOut_<ComSignalName>
• 可选:可以选择将超时的信号复位位初始值(需要配置ComRxDataTimeoutAction)
RTE的超时处理
• 超时之后可以触发一个Runnable来处理
• 在使用相关Rte_Read_<Pp>_<De>的时候会返回错误RTE_E_MAX_AGE_EXCEEDED
• 在使用Rte_IRead这样的Buffer类型的S/R接口的时候,状态可以由Rte_IStatus决定
5. Invalidation 失效机制
5.1 失效机制
当一个Signal Groups中任何一个Signal被设置为无效的时候,整个Groups就都被设置为无效了。
不允许一半有效一半无效的Signal Groups出现。
失效的信号可以通过Rte_Inmalidate(explicit API)或者Rte_IInvalidate(implicit API)来发送一个失效值。
5.2 失效处理
失效的处理有三种方式:
• Keep: 保持原值不变
• Replace: 用一个初始值替换
• None: 不做任何处理,等于是这个失效机制没有起作用
边栏推荐
- 百数不断创新,打造自由的低代码办公工具
- Kubernetes simple introduction to writing YML
- 腾讯云免费SSL证书扩展文件含义
- Detailed explanation of pod life cycle
- Don't want teachers to see themselves with cameras in online classes? Virtual camera you deserve!
- [shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)
- [shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)
- Multi process programming (III): message queue
- University of Toronto: Anthony coach | the conditions of deep reinforcement learning can induce dynamic risk measurement
- 简单聊聊运维监控的其他用途
猜你喜欢

UART、RS232、RS485、I2C和SPI的介绍

An excellent orm in dotnet circle -- FreeSQL

百数不断创新,打造自由的低代码办公工具

Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径

Attributeerror: 'tuple' object has no attribute 'layer' problem solving
![[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a](/img/f2/f3b8899aa774dd32006c5928d370f1.gif)
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a

Multiprocess programming (I): basic concepts
![[target detection] r-cnn, fast r-cnn, fast r-cnn learning](/img/f0/df285f01ffadff62eb3dcb92f2e04f.jpg)
[target detection] r-cnn, fast r-cnn, fast r-cnn learning

MySQL 23 classic interview hanging interviewer

2022上半年值得被看见的10条文案,每一句都能带给你力量!
随机推荐
腾讯云免费SSL证书扩展文件含义
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
Briefly talk about other uses of operation and maintenance monitoring
多进程编程(四):共享内存
NC24840 [USACO 2009 Mar S]Look Up
setInterval定时器在ie不生效原因之一:回调的是箭头函数
Set up nacos2 X cluster steps and problems encountered
Install docker and use docker to install MySQL
pod生命周期详解
[target detection] r-cnn, fast r-cnn, fast r-cnn learning
多进程编程(二):管道
The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail
LeedCode1480. Dynamic sum of one-dimensional array
Confluence的PDF导出中文文档异常显示问题解决
2022中国3D视觉企业(引导定位、分拣场景)厂商名单
v8
antv x6节点拖拽到画布上后的回调事件(踩大坑记录)
图解网络:什么是虚拟路由器冗余协议 VRRP?
pageoffice-之bug修改之旅