Specification of Network Management Interface,  AUTOSAR 228, R22-11, CP, 20230421

AUTOSARは、自動車用OSの業界団体規格です。　
2002年から20年経ち、ようやく実用化してきました。

MATLABでモデルさえ記述すれば、あとは自動生成だけでソフトが完成するところまで、あと一歩です。

Ethernet, UNIXが生まれて20年で大衆化したのと同じように考えると分かりやすいでしょう。　

AUTOSARの上で動く、クラウド対応のミドルウェアが出て、開発も運用もクラウドになれば、一気にAUTOSARは大衆化するでしょう。

AUTOSAR Abstract Platformへの道 R22-11

https://qiita.com/kaizen_nagoya/items/8ac2826635a8c536c7ec

# 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/AUTOSAR_SWS_NetworkManagementInterface.pdf

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

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

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


https://www.autosar.org/

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

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


公開行事の模様は

AUTOSAR R22-11 Release Event 20221208

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


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

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

Foundation Release Overview, AUTOSAR, 781, R22-11, FO, 20230421

https://qiita.com/kaizen_nagoya/items/596a7e2ec86913daa3c2


Adaptive Platform Release Overview, AUTOSAR 782, R22-11, AP, 20230421

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

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


Network Management 文書統合と状態管理構造の見直し。

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


## 文書変更(Document Change) 
>• Refined Partial Network Cluster handling
• Editorial changes

# 用語(terms)

|Term|Description|
|:--|:--|
|CanIf| CAN Interface module
|CanNm |CAN Network Management module
|CC |Communication controller
|ComM |Communication Manager module
|EcuM |ECU State Manager module
|DEM |Diagnostic Event Manager module
|Nm| Generic Network Management Interface module, this ist the abreviation used for this module throughout this specification
|NM |Network Management
|OEM |Original Equipment Manufacturer
|CBV| Control Bit Vector in NM-message
|PNC| Partial network cluster
|Bus-Sleep |Mode Network mode where all interconnected communication controllers are in the sleep mode.
|NM-Channel |Logical channel associated with the NM-cluster
|NM-Cluster |Set of NM nodes coordinated with the use of the NM algorithm.
|NM-Coordinator |A functionality of the Nm which allows coordination of network sleep for multiple NM Channels.
|NM-Message| Packet of information exchanged for purposes of the NM algorithm.
|NM-Timeout| Timeout in the NM algorithm that initiates transition into BusSleep Mode.
|NM User Data| Supplementary application specific piece of data that is attached to every NM message sent on the bus.
|Node Identifier |Node address information exchanged for purposes of the NM algorithm.
|Node Identifier List |List of Node Identifiers recognized by the NM algorithm.
|Bus|Physical communication medium to which a NM node/ecu is connected to.
|network |Entity of all NM nodes/ecus which are connected to the same bus.
|channel |Logical bus to which the NM node/ecu is connected to.
|Coordinated shutdown S|hutdown of two or more busses in a way that their shutdown is finished coinciding.
|Coordination algorithm |Initiation of coordinated shutdown in case all conditions are met.
|PN info |Represent the Partial Network information in a NM frame
|PN info range |Represent the length of a Partial Network information in bytes
|PNC bit |One bit which represent a particular Partial Network in the Partial Network Info Range
|PN filter mask|Vector of filter mask bytes defined by configuration container(s) NmPnFilterMaskByte per channel to filter relevant PNC requests for the PNC timer handling
|Top-level PNC coordinator|The top-level PNC coordinator is an ECU that acts as PNC gateway in the network and that handles at least one PNC as actively coordinated on all assigned channels. If synchronized PNC shutdown is enabled, the top-level PNC coordinator triggers for these PNCs the shutdown, if no other ECU in the network request them. Note that for different PNCs it is possible to have different toplevel PNC coordinators. For the same PNC only one top-level coordinator is supported.
|Intermediate PNC coordinator|An intermediate PNC coordinator is an ECU that acts as PNC gateway in the network and that handles at least one PNC as passively coordinated on at least one assigned channel. If synchronized PNC shutdown is enabled, it forwards received shutdown requests for these PNCs to the corresponding actively coordinated channels and starts their shutdown accordingly.
|PNC leaf node|A PNC leaf node is an ECU that act neither as top-level PNC coordinator nor as an intermediate PNC coordinator. It act as an ECU without a PNC gateway in the network and process PN shutdown message as usual NM messages.
|PN shutdown request message|A top-level PNC coordinator transmits PN shutdown messages to indicate a synchronized PNC shutdown across the PN topology. A PN shutdown message is a NM message which has PNSR bit in the control bit vector and all PNCs which are indicated for a synchronized shutdown set to ’1’. An intermediate PNC coordinator which receive a PN shutdown message and forward the PN information as PN shutdown message on the affected channels. Note: An intermediate PNC coordinators has to forward the PN information of received PN shutdown message as fast as possible to ensure a nearly synchronized shutdown of the affected PNCs across the PN topology.

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

T.B.D.

## 参考(reference)

[1] Glossary, AUTOSAR_TR_Glossary
https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_TR_Glossary.pdf
[2] General Specification of Basic Software Modules
AUTOSAR_SWS_BSWGeneral
[3] Specification of CAN Network Management
AUTOSAR_SWS_CANNetworkManagement
[4] Specification of FlexRay Network Management
AUTOSAR_SWS_FlexRayNetworkManagement
[5] Specification of UDP Network Management
AUTOSAR_SWS_UDPNetworkManagement
[6] Specification of Network Management for SAE J1939
AUTOSAR_SWS_SAEJ1939NetworkManagement
[7] General Requirements on Basic Software Modules
AUTOSAR_SRS_BSWGeneral
[8] Requirements on AUTOSAR Network Management
AUTOSAR_RS_NetworkManagement
[9] Specification of Communication Manager
AUTOSAR_SWS_COMManager
[10] Guide to BSW Distribution
AUTOSAR_EXP_BSWDistributionGuide


# 関連文書(Related document)
自動車　記事　１００

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

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

# R23-11
https://qiita.com/kaizen_nagoya/items/e5a44e4f1edb3e72f6fa

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

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

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

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

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

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