Specification of Diagnostic Log and Trace, AUTOSAR 351, R23-11, CP

AUTOSARが2023年版、R23-11を公開しました。
https://www.autosar.org/fileadmin/standards/R23-11/CP/AUTOSAR_CP_SWS_DiagnosticLogAndTrace.pdf

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

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

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

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

文書は検索してダウンロードできます。
https://www.autosar.org/



<この項は書きかけです。順次追記します。>
This article is not completed. I will add some words in order.

# Release Overviews
AUTOSARには現在3つの分類があります。Foundation, CAN OSEK/VDXのClassic Platform, Ethernet/TCP/IP POSIXのAdaptive Platform.

Foundation Release Overview, AUTOSAR 781, R23-11, FO
https://qiita.com/kaizen_nagoya/items/f249bdb8c313d8bff883

Classic Platform Release Overview, AUTOSAR No.0 ,R23-11, CP
https://qiita.com/kaizen_nagoya/items/9d22c8722cbc0f42b137

Adaptive Platform Release Overview, AUTOSAR 782, R23-11, AP
https://qiita.com/kaizen_nagoya/items/13a104606a34fe24fcf7

# Qiita 記事一覧
Autosar Foundation R23-11 一覧
https://qiita.com/kaizen_nagoya/items/c30674cb2dac2fcbbd04

AUTOSAR Adaptive Platform R23-11一覧
https://qiita.com/kaizen_nagoya/items/1dece8799a730367b0dc

Autosar Classic Platform R23-11 一覧
https://qiita.com/kaizen_nagoya/items/f770f6c2906e1dcbf180


# 文書変更(Document Change) 
>• Added Message Tags specifications
• Minor corrections
• Editorial changes
# 用語(terms)

|term|Description|
|:--|:--|
|APID| Application ID
|CTID |Context ID
|Dlt |Diagnostic Log and Trace
|MCNT| Message Counter
|MSBF| Most Significant Byte First
|MSBI| Message Bus Info
|MSCI| Message Control Info
|MSLI |Message Log Info
|MSTP| Message Type
|MSTI |Message Trace Info
|NOAR |Number of Arguments
|STMS| Timestamp
|UEH| Use Extended Header
|VERB| Verbose
|VERS| Version Number
|WEID |With ECU ID
|WSID |With Session ID
|WTMS| With Timestamp
|Log and trace message|A log and trace message contains all data and options to describe a log and trace event in a software. A log and trace message consists of a header and payload.
|Dlt User| A Dlt User represents the source of a generated Dlt message. The possible users are SW-Cs, RTE (for VFB traces), DEM, or DET.
|Log Message |A Log Message contains debug information like state changes or value changes.
|Trace Message |A Trace messages contains information, which has passed via the VFB.
|ECU ID| ECU IDis the name of an ECU, composed by four 8-bit ASCII characters (e.g., ABS0 or COMB).
|Session |A session is a logical entity of source of log or trace messages. If an application / SW-C is instantiated several times, each instance gets a globally unique session ID with respect to the application / context ID. It is possible for an application / SWC to have several simultaneous log or trace sessions, if it has several ports opened to Dlt. Since Session ID is not specified in AUTOSAR for SW-Cs, the port defined argument values shall be used for this number.
|Session ID |Session ID is the identification number of a log or trace session.
|Application ID |Application ID is an abbreviation of an application / SW-C. It identifies the  application / SW-C a log and trace message originates from. The Application ID is composed by four 8-bit ASCII characters.
|Context ID |Context ID is a user defined identifier to group Log and Trace Messages generated by an application / SW-C. The following rules apply: - Each ApplicationID can own several Context IDs. - Context IDs are grouped by Application IDs.  - Context IDs shall be unique within an Application ID. - The source of a log and trace message is identified using the tuple “ApplicationID” and “ContextId”. Four 8-bit ASCII characters compose the ContextId.
|Message ID| Messaged ID is the identifier to characterize the information, which is transported by the message itself. A Message ID identifies a kind of log or trace message uniquely. It can be used for identifying the source (in source code) of a message and it can be used for characterizing the payload of a message. A Message ID is statically fixed at development or configuration time.
|Log level| A log level defines a classification for the severity grade of a Log Message.
|Trace status| The trace status provides information, if a trace message should be send.
|Log Channel |A physical communication bus, which is used to transmit Dlt messages.
|External client |The external client is a tool to control, monitor, and store log / trace messages provided by ECUs using the Dlt module.

# References

[1] Log and Trace Protocol Specification AUTOSAR_FO_PRS_LogAndTraceProtocol
[2] Glossary AUTOSAR_FO_TR_Glossary
https://www.autosar.org/fileadmin/standards/R23-11/FO/AUTOSAR_FO_TR_Glossary.pdf
[3] Requirements on Log and Trace AUTOSAR_FO_RS_LogAndTrace
[4] Information processing systems – Open Systems Interconnection – Basic Refer- ence Model https://www.iso.org ISO/IEC 7498-1:1994
[5] General Specification of Basic Software Modules AUTOSAR_CP_SWS_BSWGeneral
[6] Specification of RTE Software AUTOSAR_CP_SWS_RTE
[7] Specification of PDU Router AUTOSAR_CP_SWS_PDURouter
[8] Specification of NVRAM Manager AUTOSAR_CP_SWS_NVRAMManager
[9] Specification of GPT Driver AUTOSAR_CP_SWS_GPTDriver
[10] Specification of Synchronized Time-Base Manager AUTOSAR_CP_SWS_SynchronizedTimeBaseManager
[11] Specification of Default Error Tracer AUTOSAR_CP_SWS_DefaultErrorTracer
[12] Specification of Diagnostic Event Manager AUTOSAR_CP_SWS_DiagnosticEventManager

## 補足資料（Additions）
祝休日・謹賀新年：2024年の目標
https://qiita.com/kaizen_nagoya/items/b659d922327a7dcdc898

2023 Countdown Calendar 主催・参加一覧
https://qiita.com/kaizen_nagoya/items/c4c2f08ac97f38d08543

CountDownCalendar月間　いいねをいただいた記事群　views　順
https://qiita.com/kaizen_nagoya/items/583c5cbc225dac23398a

Countdown Calendar 2023, 百記事目を書くにあたって。
https://qiita.com/kaizen_nagoya/items/45185a04cfd88b71256a

1年間をまとめた「振り返りページ」＠２０２３
https://qiita.com/kaizen_nagoya/items/bcd1ebd49d3a9e8c7a90

AUTOSAR 文書番号
https://qiita.com/kaizen_nagoya/items/8b894228a0b76c2265c7

AUTOSAR Countdown Calendar 2023
https://qiita.com/advent-calendar/2023/autosar

AUTOSAR Abstract Platformへの道 R22-11
https://qiita.com/kaizen_nagoya/items/8ac2826635a8c536c7ec

自動車　記事　１００
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

＜この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。＞
This article is an individual impression based on the individual's experience. It has nothing to do with the organization or business to which I currently belong.


# 文書履歴(document history)
ver. 0.01 初稿 　20240104
### 最後までおよみいただきありがとうございました。
いいね　💚、フォローをお願いします。
#### Thank you very much for reading to the last sentence.
Please press the like icon 💚　and follow me for your happy life.