Specification of LIN Interface, AUTOSAR R22-11, CP, No.73

Specification of LIN Interface, AUTOSAR R22-11, CP, No.73

AUTOSAR Countdown Calendar 2022

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

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

AUTOSARが、今年の版、R22-11をまもなく公開します。

下記は想定URLです。まだ公開していなければごめんなさい。

https://www.autosar.org/fileadmin/standards/classic/22-11/AUTOSAR_SWS_LINInterface.pdf


https://www.autosar.org/

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

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

AUTOSAR R22-11記事一覧はこちら。

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

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

# 用語(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/foundation/22-11/AUTOSAR_TR_Glossary.pdf



# 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


# 更新資料　Abstract Platform, Vehicle Modelへの対応版
Specification of LIN Interface, No.73, CP, AUTOSAR R22-11(2)

https://qiita.com/kaizen_nagoya/items/93da1b3bee92258369a1

 ＜この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。＞
# 文書履歴(document history)
ver. 0.01 初稿 　20221204
ver. 0.02 URL修正 20221221
ver. 0.03 URL追記　20230109