事件内存管理定义为在DEM模块中添加、更新和删除事件内存条目的过程。DEM模块确定事件内存条目是新的还是当前存在于事件内存中。
Event retention
Event retention定义了DEM模块记录和处理事件(DTC)、UDS状态信息和事件相关数据(例如,冻结帧、扩展数据)的能力。
DEM规范共规定了6种Event存储的条件,更多内容请参看DEM规范手册。
Event Displacement
事件替换意味着,最不重要的、已经存在的事件内存条目被需要存储的新事件内存条目替换。在替换过程中,重要程度最低事件内存条目会丢失。如果新事件内存大小超过所有可能的事件,则不会发生置换。如果事件置换策略被禁止,即DemEventDisplacementStrategy设置为DEM_DISPLACEMENT_NONE,则DEM禁止事件置换功能。
如果事件置换策列被启用,即DemEventDisplacementStrategy设置为DEM_DISPLACEMENT_FULL或DEM_DISPLACEMENT_PRIO_OCC,则DEM根据以下原则置换事件:
● Event Priority(最重要的评判原则,数字越小存储优先级越高,适用于FULL或者PRIO_OCC策略)
● Event Active或者Passive状态(Active存储优先级高于Passive优先级,适用于FULL策略)
● Event Occurence Time(按时间顺序替换较旧的存储事件,按时间顺序替换较旧的存储事件)
Aging of Event
DEM模块提供了从事件内存中删除特定事件的能力,如果其故障条件在某一段时间(操作周期)内未满足失效条件,这个过程被称为“Aging 老化”或“Unlearning 遗忘”。事件老化后,DEM将删除相关事件快照数据(冻结帧)和扩展数据记录。
DemAgingCycleCounterThreshold或DemAgingCyclecounterthresholdforfslc定义了完成的老化周期计数值,在此之后,事件内存条目将从事件内存中删除(老化)。当Aging Counter达到DemAgingCycleCounterThreshold 时, DTC状态位bit3:confirmedDTC设置为0。每个Event memory entry至少有一个Aging Counter。
相关文章









