CLASSIC
Modul: bswm
Rolle: heuristic
Konfidenz: 85%
SNIP_CLASSIC_BSWM_SECTION_7_10_EcuM_Mode_Handling
Wortlaut
7.10 EcuM Mode Handling
The ECU State Manager provides interfaces for SW-Cs to request and release the modes RUN and POST_RUN optionally. EcuMFlex arbitrates the requests and releases made by SW-Cs and propagates the result to BswM. The cooperation between EcuM and BswM is necessary as only the BswM can decide when a transition to a different mode can be made. Due to the fact that the EcuM does not have an own state machine, the EcuM relies on the state transitions made by BswM. Therefore the EcuM does not request a state. Furthermore it notifies the BswM about the current arbitration of all requests. And the BswM is notified when the RTE has executed all Runnables belonging to a certain mode. ArchitecturalComponentsofECUModeHandling Figure 7.18: Architectural Components of ECU Mode Handling Figure 7.18 illustrates the architectural components of ECU Mode Handling.
[SWS_EcuM_04115] Upstream requirements: SRS_ModeMgm_00024
⌈ECU Mode Handling shall be applied when EcuMModeHandling is configured to true.⌋
[SWS_EcuM_04116] Upstream requirements: SRS_ModeMgm_00021
⌈When the BswM sets a state of the EcuM by EcuM_SetState, the EcuM shall indicate the corresponding mode to the RTE.⌋
[SWS_EcuM_04117] Upstream requirements: SRS_ModeMgm_00010, SRS_ModeMgm_00009
⌈When the last RUN request has been released, ECU State Manager module shall indicate this to BswM using the API BswM_EcuM_RequestedState(ECUM_STATE_RUN, ECUM_RUNSTATUS_RELEASED).⌋ If a SW-C needs post run activity during POST_RUN (e.g. shutdown preparation), then it must request POST_RUN before releasing the RUN request. Otherwise it is not guaranteed that this SW-C will get a chance to run its POST_RUN code.
[SWS_EcuM_04118] Upstream requirements: SRS_ModeMgm_00010, SRS_ModeMgm_00009
⌈When the ECU State Manager is not in the state which is requested by a SWC, it shall inform BswM about requested states using the BswM_EcuM_RequestedState API.⌋ POST_RUN state provides a post run phase for SW-C’s and allows them to save important data or switch off peripherals.
[SWS_EcuM_04144] Upstream requirements: SRS_ModeMgm_00010, SRS_ModeMgm_00009
⌈When the first RUN or POST_RUN request has been received, ECU State Manager module shall indicate this to BswM using BswM_EcuM_RequestedState(ECUM_ STATE_RUN, ECUM_RUNSTATUS_REQUESTED).⌋
[SWS_EcuM_04119] Upstream requirements: SRS_ModeMgm_00009, SRS_ModeMgm_00011
⌈When the last POST_RUN request has been released, ECU State Manager module shall indicate this to BswM using the API BswM_EcuM_RequestedState(ECUM_ STATE_POST_RUN, ECUM_RUNSTATUS_RELEASED).⌋ Hint: To prevent, that the mode machine instance of ECU Mode lags behind and the states EcuM and the RTE get out of phase, the EcuM can use acknowledgement feedback for the mode switch notification. Note that EcuM only requests Modes from and to RUN and POST_RUN, the SLEEP Mode has to be set by BswM, as the EcuM has no information about when this Mode can be entered. State Description STARTUP Initial value. Set by Rte when Rte_Start() has been called. RUN As soon as all necesseray BSW modules are inistialized, BswM switches to this Mode. POST_RUN EcuM requests POST_RUN, when no RUN requests are available. SLEEP EcuM requests SLEEP Mode when no RUN and POST_RUN requests are available and Shutdown Target is set to SLEEP. SHUTDOWN EcuM requests SHUTDOWN Mode when no RUN and POST_ RUN requests are available and Shutdown Target is set to SHUTDOWN. Table 7.5: EcuM Modes
[SWS_EcuM_04143] Upstream requirements: SRS_ModeMgm_00021
⌈EcuM shall notify BswM about the current State by calling the interface BswM_EcuM_ CurrentState(EcuM_StateType State). A new state shall be set by EcuM when RTE has given its feedback via the acknowledgement port.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
EcuM state type and states definition
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_ECUStateManager.pdf |
|---|---|
| Dokumentseite | Seite 99 |
| Ziel-Modul | bswm (classic) |
| Ziel-Anforderung | SWS_EcuM_91005 |
| Semantische Rolle | heuristic |
| Automatisierungs-Konfidenz | 0.85 |