当前位置:网站首页>【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: 不做任何处理,等于是这个失效机制没有起作用
边栏推荐
- Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)
- Use Jenkins II job
- Vulkan-性能及精细化
- FRP reverse proxy +msf get shell
- An excellent orm in dotnet circle -- FreeSQL
- About qbytearray storage hexadecimal and hexadecimal conversion
- Markdown使用教程
- Linux软件:如何安装Redis服务
- 多进程编程(四):共享内存
- Maya fishing house modeling
猜你喜欢
Vulkan-性能及精细化
Maya fishing house modeling
University of Oslo: Li Meng | deep reinforcement learning based on swing transformer
How SQLSEVER removes data with duplicate IDS
Logback configuration file
ftrace工具的介绍及使用
Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)
Feature Engineering: summary of common feature transformation methods
University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
Shell implements basic file operations (cutting, sorting, and de duplication)
随机推荐
pageoffice-之bug修改之旅
AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
多进程编程(四):共享内存
Multiprocess programming (I): basic concepts
如何系统学习机器学习
Nc17059 queue Q
[Chongqing Guangdong education] audio visual language reference materials of Xinyang Normal University
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
The most painful programming problem in 2021, adventure of code 2021 Day24
[Luogu p4320] road meets (round square tree)
NC24840 [USACO 2009 Mar S]Look Up
Redis21 classic interview questions, extreme pull interviewer
为什么网站打开速度慢?
Pageoffice - bug modification journey
University of Oslo: Li Meng | deep reinforcement learning based on swing transformer
Free we media essential tools sharing
NC50965 Largest Rectangle in a Histogram
Preview word documents online
Don't want teachers to see themselves with cameras in online classes? Virtual camera you deserve!
NC24325 [USACO 2012 Mar S]Flowerpot