Replies: 2 comments
-
In AUTOSAR_EXP_SWArchitecture 11.1.2.2 |
Beta Was this translation helpful? Give feedback.
-
First of all, the The owner of the recovery action class is PHM. So, PHM needs to instantiate the class. The reason for that is, if the notifying to SM fails, PHM needs to take another recovery action which may interact with its hardware watchdog. So, basically PHM has a bunch of recovery actions which triggers them in different scenarios. However, PHM is not the only one who can control the offering of a recovery action. As you mentioned, SM can control the offering of certain recovery actions. The SM execution of a recovery action |
Beta Was this translation helpful? Give feedback.
-
Hello, I gained valuable insights from the previous question. This time, I have a question about communication between SM and PHM that I'd like to ask you. According to the documentation of PHM, PHM should call the RecoveryAction::RecoveryHandler function to report faults to SM. Whether this function can be called depends on the value of the Offer variable within RecoveryAction. The image indicates that it's SM that calls the offer() function to set this boolean value to 1. So, who should instantiate this class?
I noticed that you've overridden RecoveryAction and placed it inside PHM, with the RecoveryHandler function used to log information. How can this error information be communicated to SM?
Beta Was this translation helpful? Give feedback.
All reactions