AUTOSAR之DEM(三)——operation cycle

operation cycle

1. operation cycle類型包括:

DEM_OPCYC_IGNITION

Ignition ON/OFF cycle

DEM_OPCYC_OBD_DCY

OBD Driving cycle

DEM_OPCYC_WARMUP

OBD Warm up cycle

DEM_OPCYC_POWER

Power ON/OFF cycle

2. 在哪裏用到不同的cycle

2.1 DEM_OPCYC_IGNITION

ignition cycle指KL15電on與off之間的循環。Master ECU通過總線提供ignition cycle信息。

以KL15電開關爲操作循環的地方,如診斷開啓,是以KL15電上電爲前提,此時如果存在故障,那麼該故障的testFailedThisOperationCycle位應當置一,testNotCompleteThisOperationCycle位也應當清零。

2.2 DEM_OPCYC_OBD_DCY

Master ECU通過總線提供driving cycle的信息。Primary ECU不應當內部計算driving cycle。

以OBD driving cycle爲操作循環的,多涉及fault memory中的數據變化,如在一個OBD-related ECU中一個診斷事件的狀態爲failed,並進入fault memory的primary memory,當前故障狀態中的PNDING位被置爲一,如果該故障狀態的confirmedDTC位變爲1需要滿足的條件是:①counter oferror cycle 大於等於counter of driving cycle to confirm(一般爲2個)②這個diving cycle to confirm是開啓的狀態;同樣,PEDDING位由1變爲0的條件也是連續指定個(一般爲2個)driving cycle診斷的結果爲passed,pendingDTC由1變爲0。

以上可以從ISO-14229的附錄D.9圖中可以看出。但是如果counter of driving cycle to confirm 爲0或者1,那麼故障狀態在PENDING之後就應當confirmed。

對於counter of driving cycle to confirm,這個計數器也是在driving cycle to confirm這個操作循環開啓的狀態下,纔可以增加或者清零。

另外故障healing也需要OBD driving cycle開啓的條件下進行。healing概念在AutoSAR中是用於關閉警告指示燈。當診斷事件的故障狀態warningIndicatorRequested已經爲1後,診斷事件的report結果持續指定個operation cycles爲passed(這裏的operation cycle多爲OBD driving cycle或者在OBD driving cycle開啓的條件下,IGN operation cycle),當counters of passed operation cycles 大於等於counter of operation cycle to heal, 這時bit7狀態位清零。

2.3 DEM_OPCYC_WARMUP 這個cycle主要用於已經confirmed的診斷事件老化。

warm-up cycle定義:warm-up cycle是法律上規定的循環。它是由Master ECU計算的。Master ECU通過總線提供warm-up的信息。

The warm up cycle (WUC) is a legally prescribed cycle and is computed by the Master ECU. The Master ECU will provide the warm-up cycle information (WUC) via the Busystem.

老化條件

  • 診斷故障已經存在primary memory中,
  • 在連續的aging cycle中,診斷故障結果都爲passed
  • OBD warmup cycle循環開啓時,
  • IGN operation cycle次數增加,aging counter累加,當aging counter大於等於DemAgingCycleCounterThreshold時,該故障會老化,從primary memory中消失。

具體詳細內容還可參考fault memory章節。

Key

1 DTCAgingCounter is incremented after completing an operation cycle in which test did not fail

DTC老化計數器會在檢測沒有失效的並且完整的操作循環結束後累加;

2 pendingDTC is set to zero after an operation cycle in which the test completed and did not fail. In case an ECU does not support a power down sequence (i.e. is immediately shut off when the ignition is turned off) it will be unable to detect the end of the operation cycle. Therefore it is also valid to set the pendingDTC bit to zero at the beginning of the next operation cycle.

pendingDTC位在檢測完成並且沒有失效的操作循環結束時置零。對於不支持下電過程的ECU(如在IGN關閉後直接掉電),它們無法檢測到操作循環何時結束。但是在下一個操作循環開始時,把pendingDTC置爲零也是有效的。

3 DTCAgingCounter is incremented after completing an operation cycle in which test did not fail

DTC老化計數器會在檢測沒有失效的並且完整的操作循環結束後累加。

4 DTCAgingCounter continues to increment because test is not failing during these operation cycles

DTC老化計數器繼續增加,因爲在這些操作循環中測試沒有失效。

5 confirmedDTC is set to zero when aging criteria is fully satisfied (e.g., DTCAgingCounter reaches a specific value)

當老化條件滿足時(DTC老化計數器達到指定值),confirmedDTC位被置零。

6 DTCAgingCounter reaches a maximum value (e.g., 40) at which time the confirmedDTC bit is cleared

DTC老化計數器達到最大值(例如40)時,confirmedDTC位被清零。

7 It is the responsibility of the vehicle manufacturer to specify whether or not testFailedSinceLastClear bit is reset by aging-criteria or due to an overflow of the fault memory

汽車製造商應當制定在老化條件滿足時或者故障存儲區溢出時,從上次清除後測試失效(testFailedSinceLastClear)位是否被複位。

更多精彩內容,請關注公衆號“激活未來”。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章