LoginSignup
0
0
お題は不問!Qiita Engineer Festa 2023で記事投稿!

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

Last updated at Posted at 2023-06-24

AUTOSARは自動車用OSの業界団体規格です。 
業務で利用する場合には、会員になることを条件にしています。

2002年から20年経ち、当初の狙いの段階に近づいてきました。

MATLABでモデルさえ記述すれば、あとは自動生成だけでソフトが完成するところまで、あと一歩です。
Ethernet, UNIXが生まれて20年で大衆化したのと同じように考えると分かりやすいでしょう。 

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

AUTOSAR Abstract Platformへの道 R22-11

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/

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

一覧

AUTOSAR R22-11 Qiita記事一覧 20230421 。

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

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

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

R21-11

R20-11

R19-11

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

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

公開行事の模様は

AUTOSAR R22-11 Release Event 20221208

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

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

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

要求仕様対応(Requirement and Specification)

Abstract Platformとの関係

Log and Trace機能を基本機能に統合。

文書変更(Document Change)

Added DltProtocolVersion Parameter
Added Privacy flags and message tags
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.

英日単語帳

日本語は仮訳

T.B.D.

参考(reference)

Glossary も 参考に入れましょう。
https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_TR_Glossary.pdf
3.1 Inputdocuments
[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

3.2 Related standards and norms

IEC 7498-1 The Basic Model, IEC Norm, 1994

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

関連文書(Related document)

AUTOSAR Abstract Platformへの道 R22-11

自動車 記事 100

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

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

CAN(controller area network)

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

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

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

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

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

R23-11

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

文書履歴(document history)

ver. 0.01初稿  20230618

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

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

Thank you very much for reading to the last sentence.

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0