Specification of Diagnostic Log and Trace, AUTOSAR 22-11, CP, No.351

Specification of Diagnostic Log and Trace, AUTOSAR 22-11, CP, No.351

AUTOSAR Countdown Calendar 2022

https://qiita.com/advent-calendar/2022/autosar

2022/12/09日の投稿です。

AUTOSARが、今年の版、R22-11公開しました。公開行事の模様は

AUTOSAR R22-11 Release Event 20221208

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

下記URL順次確認中です。
https://www.autosar.org/fileadmin/standards/classic/22-11/AUTOSAR_SWS_DiagnosticLogAndTrace.pdf


間違っていたら、いいね　を押していただいて、コメント欄にご報告くださると幸いです。
編集リクエストが、構造的な変更をしている最中に、構造的な編集リクエストをしていただくと、
何をどう直したらいいかわからなくなってしまいます。自動修復ツールがつくれていません。ごめんなさい。

https://www.autosar.org/

文書は検索してダウンロードすることができます。
クラウドサービスにありがちな、あるのにないかのような検索結果が出ることがあります。

https://www.autosar.org/nc/document-search/

AUTOSAR R22-11 Qiita 記事一覧はこちらに編集中です。

https://qiita.com/kaizen_nagoya/items/11a1654e1e9ec0e4d001




## 用語(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.

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

T.B.D.

## 参考(reference)

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

[1] Log and Trace Protocol Specification with protocol version "1"
PRS_DLTProtocol.pdf from AUTOSAR Release R20-11;
[2] Log and Trace Protocol Specification with protocol version "2"
AUTOSAR_PRS_LogAndTraceProtocol.pdf from AUTOSAR Release R21-11;
[3] AUTOSAR Layered Software Architecture
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
[4] AUTOSAR General Requirements on Basic Software Modules
AUTOSAR_SRS_BSWGeneral.pdf
[5] AUTOSAR Specification of RTE
AUTOSAR_SWS_RTE.pdf
[6] AUTOSAR Specification of PDU Router
AUTOSAR_SWS_PDURouter.pdf
[7] AUTOSAR Specification of NVRAM Manager
AUTOSAR_SWS_NVRAMManager.pdf
[8] AUTOSAR Specification of Default Error Tracer
AUTOSAR_SWS_DefaultErrorTracer.pdf
[9] AUTOSAR Specification of Diagnostic Event Manager
AUTOSAR_SWS_DiagnosticEventManager.pdf
[10] AUTOSAR Specification of GPT Driver
AUTOSAR_SWS_GPTDriver.pdf
IEC 7498-1 The Basic Model, IEC Norm, 1994

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

# Countdown Calendar 2022

今年企画した6つのCountdown Calendarと、それぞれの記事一つをご紹介します。

AUTOSAR Countdown Calendar 2022

https://qiita.com/advent-calendar/2022/autosar

AUTOSAR References to ISO, IEC, ITU, IEEE, RFC and SEA etc.

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

Automotive Handbook Countdown Calendar 2022

https://qiita.com/advent-calendar/2022/automotivehandbook

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

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


2022 いいねをいただいた記事ランキング(O.K.版) Countdown Calendar 2022

https://qiita.com/advent-calendar/2022/goods

2022年１月下旬　いいねをいただいた記事　16

https://qiita.com/kaizen_nagoya/items/0ee589a8edaeab24fd2a

CDCale(O.K.) Countdown Calendar 2022

https://qiita.com/advent-calendar/2022/adventcalendar2022

「会議は15分未満」に。小耳にはさんだ話。

https://qiita.com/kaizen_nagoya/items/510c47c5d1e8d03145db

ABC language (O.K.版） Advent Calendar 2022

https://qiita.com/advent-calendar/2022/abc_ok

LLVMソースコードのコンパイルをしようと思ってハマった罠とそこから脱出するための努力

https://qiita.com/kaizen_nagoya/items/16f270e42b947756ced3

ABC maker(O.K版） Advent Calendar 2022

https://qiita.com/advent-calendar/2022/abcmaker

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

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


CountdownCalendar2022 報告

https://qiita.com/kaizen_nagoya/items/5b4b99cb9ad571f4094b


# 関連文書(Related document)

2023年1月　記事数一覧

https://qiita.com/kaizen_nagoya/items/78153968c5de76a7fd83

年末100記事を30点に仕上げる。

https://qiita.com/kaizen_nagoya/items/3ffdc82caee3a325d1d7

2023 書き初め

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

「はじめての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

AUTOSAR Abstract Platform User Group Weekly Report(1) 2022.1.8

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

AUTOSAR Abstract Platform User Group Weekly Report(2) 2022.1.15

https://qiita.com/kaizen_nagoya/items/6f1168a36e795976a906

# 更新資料　Abstract Platform, Vehicle Modelへの対応版
Specification of Diagnostic Log and Trace, No.351, CP, AUTOSAR 22-11(2)

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

# 文書履歴(document history)
ver. 0.01 初稿 20221212
ver. 0.02 URL追記　20230120