Specification of LIN Interface, AUTOSAR 73, R23-11, CP

AUTOSARが2023年版、R(Release)23-11を公開しました。
https://www.autosar.org/fileadmin/standards/R23-11/CP/AUTOSAR_CP_SWS_LINInterface.pdf

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

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

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

R19-11
https://www.autosar.org/fileadmin/standards/R19-11/CP/AUTOSAR_SWS_LINInterface.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 0, R23-11, CP
https://qiita.com/kaizen_nagoya/items/8468435185e109189ead

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 Extended Production Errors regarding LinTp timeouts and relevant errors
• Added a note after [SWS_LinIf_00503] for clarification on implementation of LinIf_CheckWakeup API
• Clarification of “Available via: Configurable” in API tables (Header File Cleanup)
• Refined configuration structure
• Editorial changes (incl. correcting typos in spec. items)
# 用語(terms)

|term|Description|
|:--|:--|
|CF| Continuous Frame in LIN TP
|FF| First Frame in LIN TP
|ID| Identifier
|LDF| LIN Description File
|LIN TP| LIN Transport Protocol (Part of the LIN Interface)
|MRF| Master Request Frame
|NAD |Node Address. Each slave in LIN must have a unique NAD.
|NC |Node Configuration
|N_As| Time for transmission of the LIN frame (any N-PDU) on the sender side (see ISO 17987-2 [19]).
|N_Cr| Time until reception of the next consecutive frame N-PDU (see ISO 17987-2 [19]).
|N_Cs| Time until transmission of the next consecutive frame N-PDU (see ISO 17987-2 [19]).
|P2| Time between reception of the last frame of a diagnostic request on the LIN bus and the slave node being able to provide data for a response.
|P2* |Time between sending a response pending frame (0x78) and the LIN-slave being able to provide data for a response.
|PID |Protected ID
|RX| Reception
|SID |Service Identifier (of node configuration service)
|SF |Single Frame in LIN TP
|SRF| Slave Response Frame
|SRS| Software Requirement Specification
|TX| Transmission
|Slot Delay| The time between start of frames in a schedule table. The unit is in number of time-bases for the specific cluster.
|Jitter| Difference between longest delay and shortest delay (e.g. Worst case execution time – Best case execution time)
|Maximum frame length|The maximum frame length is the TFRAME_MAX as defined in the ISO 17987-3 [19] (i.e. The nominal frame length plus 40 %).
|Schedule entry is due|This means that the LIN Interface has arrived at a new entry in the schedule table and a frame (received or transmitted) will be initiated.
|Slave-to-slave| From a LIN master node’s point of view, there exist 3 different directions of frames on the LIN bus: Response transmitted by the master, Response received by the master and Response transmitted by one slave and received by another slave. The slave-to-slave is describing the last one. This is not described explicitly in the ISO 17987 specifications, but mentioned in Figure 14 in ISO 17987-3: Three unconditional frame transfers.
|Irrelevant frame| From a LIN slave node point of view, there exist 3 different directions of frames on the LIN bus: Response transmitted by the slave, Response received by the slave and Response that is ignored by the slave (i.e. communication between master and another slave or between two other slaves). These ignored frames are named irrelevant frames in this specification. This is not described explicitly  in the ISO17987 specifications.
|Relevant frame| From a LIN slave node point of view, a frame that is transmitted or received by the slave. Opposite of irrelevant frame.
|Sporadic frame| This is one of the unconditional frames that are attached to a sporadic slot.
|Sporadic slot |This is a placeholder for the sporadic frames. The reason to name it slot is that it has no LIN frame ID.
|Tick| The tick is the smallest time entity to handle the communication on all channels.
|Bus idle timeout |Lapse of time duration with no bus activity
# References
Glossaryも掲載しましょう。
https://www.autosar.org/fileadmin/standards/R23-11/FO/AUTOSAR_FO_TR_Glossary.pdf

[1] ISO 17987:2016 (all parts), Road vehicles – Local Interconnect Network (LIN) https://www.iso.org
[2] LIN Specification Package, Revision 2.2A https://lin-cia.org/
[3] LIN Specification Package, Revision 2.1 https://lin-cia.org/
[4] Layered Software Architecture AUTOSAR_CP_EXP_LayeredSoftwareArchitecture
[5] ISO 17987-2:2016 Road vehicles – Local Interconnect Network (LIN) – Part 2: Transport protocol and network layer services　https://www.iso.org
[6] ISO 17987-3:2016 Road vehicles – Local Interconnect Network (LIN) – Part 3: Protocol specification　https://www.iso.org
[7] General Specification of Basic Software Modules AUTOSAR_CP_SWS_BSWGeneral
[8] J2602-1:2012 LIN Network for Vehicle Applications
[9] Specification of Default Error Tracer AUTOSAR_CP_SWS_DefaultErrorTracer
[10] Specification of ECU State Manager AUTOSAR_CP_SWS_ECUStateManager
[11] Specification of PDU Router AUTOSAR_CP_SWS_PDURouter
[12] Specification of LIN State Manager AUTOSAR_CP_SWS_LINStateManager
[13] Specification of Basic Software Mode Manager AUTOSAR_CP_SWS_BSWModeManager
[14] Specification of Communication AUTOSAR_CP_SWS_COM
[15] Specification of LIN Driver AUTOSAR_CP_SWS_LINDriver
[16] Specification of LIN Transceiver Driver AUTOSAR_CP_SWS_LINTransceiverDriver
[17] Specification of Bus Mirroring AUTOSAR_CP_SWS_BusMirroring
[18] General Requirements on Basic Software Modules AUTOSAR_CP_SRS_BSWGeneral
[19] Requirements on LIN AUTOSAR_CP_SRS_LIN
[20] ISO/TR 17987-5:2016 Road vehicles – Local Interconnect Network (LIN) – Part 5: Application programmers interface (API)　https://www.iso.org


## 補足資料（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 R23-11 記憶の記録
https://qiita.com/kaizen_nagoya/items/701bc800b5f137e51a36

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

博論の乗りで、Youtube記事を論文にするには
https://qiita.com/kaizen_nagoya/items/05e4d2b121b6b80a5c6b

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 初稿 　20240105
### 最後までおよみいただきありがとうございました。
いいね　💚、フォローをお願いします。
#### Thank you very much for reading to the last sentence.
Please press the like icon 💚　and follow me for your happy life.