The connection between AUTOSAR Network Management sleep/wake-up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The connection between AUTOSAR Network Management sleep/wake-up

215 Views
ydygcvjhbjkjnkn
Contributor I

Hello, I am currently debugging EcuM and Network Management. I have consulted some specification manuals, but I still have some confusion and would like to request guidance.

  1. Does the sleep/wake-up of Network Management necessarily require coordination with EcuM (i.e., EcuM validates the wake‑up cause)?

  2. During the Network Management sleep/wake‑up process, does the ECU need to go to sleep (i.e., EcuM sleep)?

  3. If the answer to question 1 is yes, then EcuM obtains wake‑up events through the interface EcuM_SetWakeupEvent. However, the AUTOSAR EcuM specification SWS_EcuM_04318 states: “Wakeup events that are not associated to the selected sleep mode shall be ignored.” How should I understand this?

  4. The AUTOSAR EcuM specification also contains two entries regarding the interface EcuM_ValidateWakeupEvent – SWS_EcuM_02790 and SWS_EcuM_02791. It says that wake‑up sources associated with a ComM channel shall be effective in any phase. Does this mean that in any phase, a wake‑up event can be pended (i.e., successfully pass through EcuM_SetWakeupEvent) and then be validated?

0 Kudos
Reply
2 Replies

115 Views
ydygcvjhbjkjnkn
Contributor I
Hello, thank you for your answer. I still have some questions regarding your response. I apologize for bothering you repeatedly, and I would like to thank you in advance.

I understand that the sleep/wake-up of Network Management also seems to require EcuM to validate the wake-up source, because in the passive mode of Network Management, EcuM validation of the wake-up source is required. After the wake-up source associated with the ComM channel is successfully validated, EcuM calls the ComM interface, and then the network can wake up. In your first answer, you said that EcuM's wake-up validation is only necessary when the ECU actually enters the EcuM sleep state. So, I interpret this as meaning that after Network Management sleep/wake-up, the ECU also needs to enter the EcuM sleep state, and then go through the EcuM wake-up validation process. However, this seems to conflict somewhat with your second answer. I'm not sure whether my understanding is correct.

In your third and fourth answers, SWS_EcuM_04318 states that EcuM only accepts wake-up events configured for the currently selected sleep mode. In answer 4, you said that ComM-related wake-up sources are a special case. So, can ComM-related wake-up sources simply ignore the constraints of SWS_EcuM_04318, or must I, during the design phase, configure all ComM-related wake-up sources as wake-up events for the sleep mode?

Does the wake-up source need to be enabled first? EcuM calls EcuM_EnableWakeupSource for enabling during the sleep phase. Only after enabling can it be pended (successfully pass the EcuM_SetWakeupEvent interface filtering)? If so, regarding the statement in answer 4 that "ComM-channel-associated sources (e.g., CAN wakeup frame) can be pended via EcuM_SetWakeupEvent," does this pend operation only occur during the EcuM sleep phase, and then validation occurs in any phase of EcuM? Or is the enabling step done by other drivers themselves, or are there other scenarios?

I look forward to your answers.
0 Kudos
Reply

180 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1. Does NM sleep/wake-up require EcuM coordination?
Not necessarily. NM/ComM manages network communication, while EcuM manages ECU power states. EcuM wakeup validation is mainly relevant when the ECU actually enters an EcuM sleep state. 

2. Does NM sleep mean the ECU must enter EcuM sleep?
No. The network can enter Bus-Sleep while the ECU remains in RUN mode and continues executing local functions.

3. How to understand SWS_EcuM_04318?
It means EcuM only accepts wakeup events that are configured for the currently selected sleep mode. Wakeup events from sources not enabled for that sleep mode are ignored. It prevents spurious hardware events from waking the ECU unintentionally.

4. Can ComM-related wakeup sources be validated in any EcuM phase?
Yes. This is a deliberate special case. Generic wakeup sources are only accepted during SLEEP, but ComM-channel-associated sources (e.g., CAN wakeup frame) can be pended via EcuM_SetWakeupEvent and validated via EcuM_ValidateWakeupEvent in any EcuM phase. This allows a wakeup event to abort an ongoing Go-Sleep sequence — which is the key mechanism linking NM wakeup back to EcuM.

In short: NM sleep ≠ ECU sleep, and ComM-linked wakeup sources receive special handling in EcuM, allowing validation outside the normal wakeup sequence. 

 

BR, Petr

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2409039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThe%20connection%20between%20AUTOSAR%20Network%20Management%20sleep%2Fwake-up%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E%3CSPAN%20class%3D%22%22%3EHello%2C%20I%20am%20currently%20debugging%20EcuM%20and%20Network%20Management.%20I%20have%20consulted%20some%20specification%20manuals%2C%20but%20I%20still%20have%20some%20confusion%20and%20would%20like%20to%20request%20guidance.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EDoes%20the%20sleep%2Fwake-up%20of%20Network%20Management%20necessarily%20require%20coordination%20with%20EcuM%20(i.e.%2C%20EcuM%20validates%20the%20wake%E2%80%91up%20cause)%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EDuring%20the%20Network%20Management%20sleep%2Fwake%E2%80%91up%20process%2C%20does%20the%20ECU%20need%20to%20go%20to%20sleep%20(i.e.%2C%20EcuM%20sleep)%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EIf%20the%20answer%20to%20question%201%20is%20yes%2C%20then%20EcuM%20obtains%20wake%E2%80%91up%20events%20through%20the%20interface%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EEcuM_SetWakeupEvent%3CSPAN%20class%3D%22%22%3E.%20However%2C%20the%20AUTOSAR%20EcuM%20specification%20SWS_EcuM_04318%20states%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CEM%3E%3CSPAN%20class%3D%22%22%3E%E2%80%9CWakeup%20events%20that%20are%20not%20associated%20to%20the%20selected%20sleep%20mode%20shall%20be%20ignored.%E2%80%9D%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EHow%20should%20I%20understand%20this%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EThe%20AUTOSAR%20EcuM%20specification%20also%20contains%20two%20entries%20regarding%20the%20interface%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EEcuM_ValidateWakeupEvent%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%E2%80%93%20SWS_EcuM_02790%20and%20SWS_EcuM_02791.%20It%20says%20that%20wake%E2%80%91up%20sources%20associated%20with%20a%20ComM%20channel%20shall%20be%20effective%20in%20any%20phase.%20Does%20this%20mean%20that%20in%20any%20phase%2C%20a%20wake%E2%80%91up%20event%20can%20be%20pended%20(i.e.%2C%20successfully%20pass%20through%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EEcuM_SetWakeupEvent%3CSPAN%20class%3D%22%22%3E)%20and%20then%20be%20validated%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2409249%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20The%20connection%20between%20AUTOSAR%20Network%20Management%20sleep%2Fwake-up%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409249%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3E1.%20Does%20NM%20sleep%2Fwake-up%20require%20EcuM%20coordination%3F%3CBR%20%2F%3ENot%20necessarily.%20NM%2FComM%20manages%20network%20communication%2C%20while%20EcuM%20manages%20ECU%20power%20states.%20EcuM%20wakeup%20validation%20is%20mainly%20relevant%20when%20the%20ECU%20actually%20enters%20an%20EcuM%20sleep%20state.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Does%20NM%20sleep%20mean%20the%20ECU%20must%20enter%20EcuM%20sleep%3F%3CBR%20%2F%3ENo.%20The%20network%20can%20enter%20Bus-Sleep%20while%20the%20ECU%20remains%20in%20RUN%20mode%20and%20continues%20executing%20local%20functions.%3C%2FP%3E%0A%3CP%3E3.%20How%20to%20understand%20SWS_EcuM_04318%3F%3CBR%20%2F%3EIt%20means%20EcuM%20only%20accepts%20wakeup%20events%20that%20are%20configured%20for%20the%20currently%20selected%20sleep%20mode.%20Wakeup%20events%20from%20sources%20not%20enabled%20for%20that%20sleep%20mode%20are%20ignored.%26nbsp%3BIt%20prevents%20spurious%20hardware%20events%20from%20waking%20the%20ECU%20unintentionally.%3C%2FP%3E%0A%3CP%3E4.%20Can%20ComM-related%20wakeup%20sources%20be%20validated%20in%20any%20EcuM%20phase%3F%3CBR%20%2F%3EYes.%20This%20is%20a%20deliberate%20special%20case.%20Generic%20wakeup%20sources%20are%20only%20accepted%20during%20SLEEP%2C%20but%20ComM-channel-associated%20sources%20(e.g.%2C%20CAN%20wakeup%20frame)%20can%20be%20pended%20via%20EcuM_SetWakeupEvent%20and%20validated%20via%20EcuM_ValidateWakeupEvent%20in%20any%20EcuM%20phase.%20This%20allows%20a%20wakeup%20event%20to%20abort%20an%20ongoing%20Go-Sleep%20sequence%20%E2%80%94%20which%20is%20the%20key%20mechanism%20linking%20NM%20wakeup%20back%20to%20EcuM.%3C%2FP%3E%0A%3CP%3EIn%20short%3A%20NM%20sleep%20%E2%89%A0%20ECU%20sleep%2C%20and%20ComM-linked%20wakeup%20sources%20receive%20special%20handling%20in%20EcuM%2C%20allowing%20validation%20outside%20the%20normal%20wakeup%20sequence.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2409444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20The%20connection%20between%20AUTOSAR%20Network%20Management%20sleep%2Fwake-up%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHello%2C%20thank%20you%20for%20your%20answer.%20I%20still%20have%20some%20questions%20regarding%20your%20response.%20I%20apologize%20for%20bothering%20you%20repeatedly%2C%20and%20I%20would%20like%20to%20thank%20you%20in%20advance.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20understand%20that%20the%20sleep%2Fwake-up%20of%20Network%20Management%20also%20seems%20to%20require%20EcuM%20to%20validate%20the%20wake-up%20source%2C%20because%20in%20the%20passive%20mode%20of%20Network%20Management%2C%20EcuM%20validation%20of%20the%20wake-up%20source%20is%20required.%20After%20the%20wake-up%20source%20associated%20with%20the%20ComM%20channel%20is%20successfully%20validated%2C%20EcuM%20calls%20the%20ComM%20interface%2C%20and%20then%20the%20network%20can%20wake%20up.%20In%20your%20first%20answer%2C%20you%20said%20that%20EcuM's%20wake-up%20validation%20is%20only%20necessary%20when%20the%20ECU%20actually%20enters%20the%20EcuM%20sleep%20state.%20So%2C%20I%20interpret%20this%20as%20meaning%20that%20after%20Network%20Management%20sleep%2Fwake-up%2C%20the%20ECU%20also%20needs%20to%20enter%20the%20EcuM%20sleep%20state%2C%20and%20then%20go%20through%20the%20EcuM%20wake-up%20validation%20process.%20However%2C%20this%20seems%20to%20conflict%20somewhat%20with%20your%20second%20answer.%20I'm%20not%20sure%20whether%20my%20understanding%20is%20correct.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20your%20third%20and%20fourth%20answers%2C%20SWS_EcuM_04318%20states%20that%20EcuM%20only%20accepts%20wake-up%20events%20configured%20for%20the%20currently%20selected%20sleep%20mode.%20In%20answer%204%2C%20you%20said%20that%20ComM-related%20wake-up%20sources%20are%20a%20special%20case.%20So%2C%20can%20ComM-related%20wake-up%20sources%20simply%20ignore%20the%20constraints%20of%20SWS_EcuM_04318%2C%20or%20must%20I%2C%20during%20the%20design%20phase%2C%20configure%20all%20ComM-related%20wake-up%20sources%20as%20wake-up%20events%20for%20the%20sleep%20mode%3F%3CBR%20%2F%3E%3CBR%20%2F%3EDoes%20the%20wake-up%20source%20need%20to%20be%20enabled%20first%3F%20EcuM%20calls%20EcuM_EnableWakeupSource%20for%20enabling%20during%20the%20sleep%20phase.%20Only%20after%20enabling%20can%20it%20be%20pended%20(successfully%20pass%20the%20EcuM_SetWakeupEvent%20interface%20filtering)%3F%20If%20so%2C%20regarding%20the%20statement%20in%20answer%204%20that%20%22ComM-channel-associated%20sources%20(e.g.%2C%20CAN%20wakeup%20frame)%20can%20be%20pended%20via%20EcuM_SetWakeupEvent%2C%22%20does%20this%20pend%20operation%20only%20occur%20during%20the%20EcuM%20sleep%20phase%2C%20and%20then%20validation%20occurs%20in%20any%20phase%20of%20EcuM%3F%20Or%20is%20the%20enabling%20step%20done%20by%20other%20drivers%20themselves%2C%20or%20are%20there%20other%20scenarios%3F%3CBR%20%2F%3E%3CBR%20%2F%3EI%20look%20forward%20to%20your%20answers.%3C%2FLINGO-BODY%3E