esrlabs / dlt-core

DLT parsing & writing library
Apache License 2.0
15 stars 8 forks source link

Add support for newest DLT specification V2 #23

Open marcmo opened 3 months ago

marcmo commented 3 months ago

check with latest spec

kruss commented 3 months ago

This seems to be the latest spec (2023-11-23 R23-11): https://www.autosar.org/fileadmin/standards/R23-11/FO/AUTOSAR_FO_PRS_LogAndTraceProtocol.pdf

This is basically the old spec being implemented already (actually it's 1.0.0): https://www.autosar.org/fileadmin/standards/R17-03_R1.1.0/FO/AUTOSAR_PRS_LogAndTraceProtocol.pdf

DLT V2 was introduced in 2021-11-25 R21-11, other changes before to DLT V1 seem to be minor only.

The DLT Version can be evaluated by bits 5-7 of first Byte within Header for both DLT versions.

DLT V1 [PRS_Dlt_00094] ⌈The Header Type (HTYP) shall contain the following information and be encoded the following way: ... • Bit 5-7: VERS (Version Number)

DLT V2 [PRS_Dlt_01008] dThe Header Type (HTYP2) shall contain the following information and shall be encoded in the following way: ... • Bit 5-7: VERS (Version Number)