Specification of Watchdog Manager,  AUTOSAR 80, 22-11, CP, 20230421


 2023年4月URL変更
この項は2023年4月21日、AUTOSARの文書のURLが変更になった。
/classic/22-11/
が
/R22-11/CP/
過去記事で、URLでエラーが出たら書き換えてみてください。

/adaptive/22-11/
は　
/R22-11/AP/

/foundation/22-11/
は　
/R22-11/FO/
です。
## 2023年11月URL変更
2023年11月にもAUTOSAR文書のURLが変更になっている。
/user_upload/standards/classic/21-11/
を
/standards/R21-11/CP/
などに書き換えてください。

/user_upload/standards/adaptive/21-11/
を
/standards/R21-11/AP/

/user_upload/standards/foundation/21-11/
を
/standards/R21-11/FO/

お手数をおかけします。
１年に２度URLを変更するなんて、新しい記事が書ける。とても嬉しい。

# 一覧

AUTOSAR R22-11 Qiita記事一覧 20230421 。

https://qiita.com/kaizen_nagoya/items/81a35774f1aa3d64d3f6

この記事の表題の最後に「20230421」を加えます。

<この項は書きかけです。順次追記します。>

AUTOSARが、2022年の版、R22-11を公開しました。


https://www.autosar.org/fileadmin/standards/R22-11/CP/AAUTOSAR_SWS_WatchdogManager.pdf


R21-11

https://www.autosar.org/fileadmin/standards/R21-11/CP/AUTOSAR_SWS_WatchdogManager.pdf

R20-11

https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_WatchdogManager.pdf

R19-11

https://www.autosar.org/fileadmin/standards/R19-11/CP/AUTOSAR_SWS_WatchdogManager.pdf


https://www.autosar.org/

文書は検索してダウンロードできます。

R20-11,R21-11, R22-11の３年分だけになりました。


公開行事の模様は

AUTOSAR R22-11 Release Event 20221208

https://qiita.com/kaizen_nagoya/items/18471d0b340480fdcd42


AUTOSAR R22-11 Classic Platform 一覧はこちら。


Classic Platform Release Overview, AUTOSAR No.0 ,R22-11, CP, 20230421

https://qiita.com/kaizen_nagoya/items/9d22c8722cbc0f42b137

# 要求仕様対応(Requirement and Specification)
# Abstract Platformとの関係

国際規格を参照したAdaptive Platformと共通の文書。

<この項は書きかけです。順次追記します。>


## 文書変更(Document Change) 
> Editorial changes
## 用語(terms)

|Term|Description|
|:--|:--|
|AI |Alive Indication
|BSW |Basic Software
|BswM |Basic Software Mode Manager
|DEM |Diagnostic Event Manager
|DET |Default Error Tracer
|EAI|Expected Alive Indications
|EcuM| ECU State Manager
|FiM |Function Inhibition Manager
|HW| Hardware
|ID |Identifier
|MCU |Micro Controller Unit
|OS| Operating System
|SC |Supervision Cycle
|SE| Supervised Entity
|SRC| Supervision Reference Cycle
|SW-C| Software Component
|SWCL |Software Cluster
|RTE| Runtime Environment
|WdgM| Watchdog Manager
|Alive Counter| An independent data resource in the Watchdog Manager in context of a Checkpoint to track and handle its amount of Alive Indications.
|Alive Indication |An indication provided by a Checkpoint of a Supervised Entity to signal its aliveness to the Watchdog Manager.
|Alive Supervision |Kind of supervision that checks if a Supervised Entity executed sufficiently often and not too often (including tolerances).
|Checkpoint |A point in the control flow of a Supervised Entity where the activity is reported to the Watchdog Manager.
|Deadline Supervision| Kind of supervision that checks if the execution time between two Checkpoints are lower than a given upper execution time limit.
|Deadline Start Checkpoint| A Checkpoint for which Deadline Supervision is configured and which is a starting point for a particular Deadline Supervision.
|Deadline End Checkpoint|A Checkpoint for which Deadline Supervision is configured and which is an ending point for a particular Deadline Supervision. It is possible that a Checkpoint is both a Deadline Start Checkpoint and Deadline End Checkpoint – if Deadline Supervision is chained.
|Expired Supervision Cycle |A Supervision Cycle where the Alive Supervision has failed its two escalation steps (Alive Counter fails the expected amount of Alive Indications (including tolerances) more often than the allowed amount of failed reference cycles).
|Failed Supervision Reference Cycle| A Supervision Reference Cycle that ends with a detected deviation (including tolerances) between the  Alive Counter and the expected amount of Alive Indications.
|Global Supervision Status| Status that summarizes the Local Supervision Status of all Supervised Entities.
|Graph |A set of Checkpoints connected through Transitions, where at least one of Checkpoints is an Initial Checkpoint. There is a path (through Transitions) between any two Checkpoints of the Graph.
|External Graph |Graph that may involve more than one Supervised Entity. Its configuration is mode-dependent.
|Cross-Cluster External Graph |A special kind of External Graph that spans over multiple Software Clusters for Clustered Software Architecture. Its configuration is mode-dependent (controlled by Host SWCL) and has dedicated configuration structure additionally. Note: External Graph within one Software Cluster can be modelled without the configuration structure dedicated for clustered software architecture.
|External Transition| An External Transition is a transition between two Checkpoints, where the Checkpoints belong to different Supervised Entities.
|Local Supervision Status| Status that represents the current result of alivesupervision of a single Supervised Entity.
|Logical Supervision |Kind of online supervision of software that checks if the software (Supervised Entity or set of Supervised Entities) is executed in the sequence defined by the programmer (by the developed code).
|Internal Graph| Graph that may not span over several Supervised Entity. Its configuration is mode-independent and can be disabled by disabling the corresponding Supervised Entity.
|Internal Transition|An Internal Transition is a transition between two Checkpoints of a Supervised Entity.
|Mode| A mode is a certain set of states of the various state machines that are running in the vehicle that are relevant to a particular entity, e.g. a SW-C, a BSW module, an application, a whole vehicle In its lifetime, an entity changes between a set of mutually exclusive modes. These changes are triggered by environmental data, e.g. signal reception, operation invocation. In the context of the Watchdog Manager a mode is defined by a set of configuration options. The set of Supervised Entities to be supervised may vary from mode to mode.
|Supervised Entity |A software entity which is included in the supervision of the Watchdog Manager. Each Supervised Entity has  exactly one identifier. A Supervised Entity denotes a collection of Checkpoints within an instance of Software Component Types or Basic Software Modules. There may be zero, one or more Supervised Entities in an instance of Software Component Types or Basic Software Modules.
|Supervised Entity Identifier |An Identifier that identifies uniquely a Supervised Entity within an Application.
|Supervision Counter| An independent data resource in context of a Supervised Entity which is updated by the Watchdog Manager during each Supervision Cycle and which is  used by the Alive Supervision algorithm to perform the check against counted Alive Indications.
|Supervision Cycle |The time base of Supervision Reference Cycle of Watchdog Manager, where the cyclic Alive Supervision is performed. And it’s also the interval for updating Global Supervision Status and execution of resulting Recovery Actions. This is done in every call of the Main Function of belonging Watchdog Manager and mode-dependent (may vary when swiching mode).
|Supervision Reference Cycle| The amount of Supervision Cycles to be used as reference by the Alive Supervision to perform the check of counted Alive Indications (individually for each Supervised Entity) and mode-dependent.


## 英日単語帳
日本語は仮訳

T.B.D.

## 参考(reference)

[1] Layered Software Architecture
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
[2] General Requirements on Basic Software Modules
AUTOSAR_SRS_BSWGeneral.pdf
[3] Requirements on Mode Management
AUTOSAR_SRS_ModeManagement.pdf
[4] Specification of Platform Types
AUTOSAR_SWS_PlatformTypes.pdf
[5] Specification of RTE
AUTOSAR_SWS_RTE.pdf
[6] Specification of ECU State Manager
AUTOSAR_SWS_ECUStateManager.pdf
[7] Basic Software Module Description Template
AUTOSAR_TPS_BSWModuleDescriptionTemplate.pdf
[8] List of Basic Software Modules
AUTOSAR_TR_BSWModuleList.pdf
[9] AUTOSAR General Specification for Basic Software Modules
AUTOSAR_SWS_BSWGeneral.pdf

Glossary も　参考に入れましょう。
https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_TR_Glossary.pdf

# 関連文書(Related document)


Basic principles, ボッシュ自動車handbook(英語)11版まとめ<2>

https://qiita.com/kaizen_nagoya/items/24a1ba5da3d09b2a95d1

JAXA/IPA クリティカルソフトウェアワークショップ WOCS言語関連発表(改定版)

https://qiita.com/kaizen_nagoya/items/4789832baf494cb74626


CAN(controller area network) 

https://qiita.com/kaizen_nagoya/items/e8c0bd7bfb2827b83de9

「はじめてのCAN/CANFD 」 ベクタージャパン ＜エンジニア夏休み企画>【読書感想文】

https://qiita.com/kaizen_nagoya/items/1fee270be00ef90ca4ec


三方良し　Udemy 車載LAN入門講座 CAN通信編

https://qiita.com/kaizen_nagoya/items/bed038c52510fea72c0a


詳解 車載ネットワーク CAN, CAN FD, LIN, CXPI, Ethernetの仕組みと設計のために(1) 著者　 ＜エンジニア夏休み企画 読書感想文＞

https://qiita.com/kaizen_nagoya/items/e9971698a108c3dba794

詳解 車載ネットワーク CAN, CAN FD, LIN, CXPI, Ethernetの仕組みと設計のために(2)参考文献 ＜エンジニア夏休み企画>【読書感想文】

https://qiita.com/kaizen_nagoya/items/e156cbdd5fce9263776e

詳解 車載ネットワーク CAN、CAN FD、LIN、CXPI、Ethernetの仕組みと設計のために

https://qiita.com/kaizen_nagoya/items/44a9e6b0f5363b4a5b35


 ＜この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。＞

# 文書履歴(document history)
ver. 0.01初稿　　20230610

### 最後までおよみいただきありがとうございました。

いいね　💚、フォローをお願いします。

####  Thank you very much for reading to the last sentence.

Please press the like icon 💚　and follow me for your happy life.