Specification of LIN Interface, AUTOSAR 73, R22-11, CP, 20230401

 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/

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

# 一覧

AUTOSAR R22-11 Qiita記事一覧 20230421 。

https://qiita.com/kaizen_nagoya/items/81a35774f1aa3d64d3f6

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

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

AUTOSARが、2022年の版、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/

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

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


公開行事の模様は

AUTOSAR R22-11 Release Event 20221208

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


AUTOSAR R22-11 Classic Platform 一覧はこちら。


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

https://qiita.com/kaizen_nagoya/items/9d22c8722cbc0f42b137

# 要求仕様対応(Requirement and Specification)
# Abstract Platformとの関係


Adaptive Platformと統合。

# 文書変更(Document Change) 
>Changed upper limit of LinTpP2Timing and LinTpP2Max
 Renamed the arguments “Schedule” (SWS_LinIf_00202 LinIf_ScheduleRequest) and “schedule” (SWS_LinIf_00520 <User>_ScheduleRequestConfirmat ion)
# 用語(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


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

T.B.D.

# 参考(reference)

[1] List of Basic Software Modules
AUTOSAR_TR_BSWModuleList.pdf
[2] Layered Software Architecture
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
[3] General Requirements on Basic Software Modules
AUTOSAR_SRS_BSWGeneral.pdf
[4] Specification of Standard Types
AUTOSAR_SWS_StandardTypes.pdf
[5] Specification of Default Error Tracer
AUTOSAR_SWS_DefaultErrorTracer.pdf
[6] Requirements on LIN
AUTOSAR_SRS_LIN.pdf
[7] Specification of LIN Driver
AUTOSAR_SWS_LINDriver.pdf
[8] Specification of ECU Configuration
AUTOSAR_TPS_ECUConfiguration.pdf
[9] Specification of ECU State Manager
AUTOSAR_SWS_ECUStateManager.pdf
[10] Specification of LIN State Manager
AUTOSAR_SWS_LINStateManager.pdf
[11] Basic Software Module Description Template
AUTOSAR_TPS_BSWModuleDescriptionTemplate.pdf
[12] Specification of LIN Transceiver Driver
AUTOSAR_SWS_LINTransceiverDriver.pdf
[13] Specification of PDU Router
AUTOSAR_SWS_PDURouter.pdf
[14] Specification of Communication Stack Types
AUTOSAR_SWS_CommunicationStackTypes.pdf
[15] Specification of Basic Software Mode Manager
AUTOSAR_SWS_BSWModeManager.pdf
[16] General Specification of Basic Software Modules
AUTOSAR_SWS_BSWGeneral.pdf
[17] LIN Specification Package Revision 2.1, November 24, 2006
http://www.lin-subbus.org/
### [18] SAE J2602-1 (2012-11), LIN Network for Vehicle Applications

LIN Network for Vehicle Applications J2602-1_202110

https://www.sae.org/standards/content/j2602-1_202110/

### [19] ISO 17987:2016 (all parts), Road vehicles – Local Interconnect Network (LIN)

#### ISO 17987-1:2016
Road vehicles — Local Interconnect Network (LIN) — Part 1: General information and use case definition

2   Normative references

ISO 17987-4, Road vehicles — Local Interconnect Network (LIN) — Part 4: Electrical Physical Layer (EPL) specification 12 V/24 V

Bibliography

[1]	ISO 14229-1, Road vehicles — Unified diagnostic services (UDS) — Part 1: Specification and requirements
[2]	ISO 14229-2, Road vehicles — Unified diagnostic services (UDS) — Part 2: Session layer services
[3]	ISO 14229-7, Road vehicles — Unified diagnostic services (UDS) — Part 7: UDS on local interconnect network (UDSonLIN)
[4]	ISO 17987-2, Road vehicles — Local Interconnect Network (LIN) — Part 2: Transport protocol and network layer services
[5]	ISO 17987-3, Road vehicles — Local Interconnect Network (LIN) — Part 3: Protocol specification
[6]	ISO/TR 17987-51, Road vehicles — Local Interconnect Network (LIN) — Part 5: Application programmers interface (API)
[7]	ISO 17987-6, Road vehicles — Local Interconnect Network (LIN) — Part 6: Protocol conformance test specification
[8]	ISO 17987-7, Road vehicles — Local Interconnect Network (LIN) — Part 7: Electrical Physical Layer (EPL)
[9]	ISO/IEC 7498-1, Information processing systems — Open Systems Interconnection — Basic Reference Model: The Basic Model
[10]	ISO/IEC 10731, Information technology — Open Systems Interconnection — Basic Reference Model — Conventions for the definition of OSI services
1 To be published.

#### ISO 17987-2:2016
Road vehicles — Local Interconnect Network (LIN) — Part 2: Transport protocol and network layer services

2   Normative references

ISO 14229-1, Road vehicles — Unified diagnostic services (UDS) — Part 1: Specification and requirements
ISO 14229-2, Road vehicles — Unified diagnostic services (UDS) — Part 2: Session layer services
ISO 14229-7:2015, Road vehicles — Unified diagnostic services (UDS) — Part 7: UDS on local interconnect network (UDSonLIN)
ISO 17987-3:2016, Road vehicles — Local Interconnect Network (LIN) — Part 3: Protocol specification

Bibliography

[1]	ISO 17987-4, Road vehicles — Local Interconnect Network (LIN) — Part 4: Electrical Physical Layer (EPL) specification (12V/24V)
[2]	ISO/TR 17987-5, Road vehicles — Local Interconnect Network (LIN) — Part 5: Application Programmers Interface (API)
[3]	ISO 17987-6, Road vehicles — Local Interconnect Network (LIN) — Part 6: Protocol conformance test specification
[4]	ISO 17987-7, Road vehicles — Local Interconnect Network (LIN) — Part 7: Electrical Physical Layer (EPL) conformance test specification
[5]	ISO/IEC 7498-1, Information processing systems — Open Systems Interconnection — Basic Reference Model: The Basic Model — Part 1
[6]	ISO/IEC 10731, Information technology — Open Systems Interconnection — Basic Reference Model — Conventions for the definition of OSI services


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

# 関連文書(Related document)

CAN(controller area network) 

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

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

# R23-11
https://qiita.com/kaizen_nagoya/items/71373223148fed859149

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

# 文書履歴(document history)
ver. 0.01初稿　　20230527

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

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

####  Thank you very much for reading to the last sentence.

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