Requirements on I/O Hardware Abstraction, AUTOSAR 75, R22-11, CP, 20230421


 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_IOHardwareAbstraction.pdf


R21-11

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

R20-11

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

R19-11

https://www.autosar.org/fileadmin/standards/R19-11/CP/AUTOSAR_SWS_IOHardwareAbstraction.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との関係


電源系サービスに統合する。

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


## 文書変更(Document Change) 
Changed SWS_IoHwAb_00145 to SWS_IoHwAb_NA_00145

# 用語(terms)
|Term|Description|Example|
|:--|:--|:--|
|Class|A class represents a kind of electrical connection to the ECU. It could be for example an analogue, a discrete,… |Analogue Class, Discrete Class…
|Electrical Signal|It is the electrical signal on the pin of the ECU |Physical input voltage at an ECUPin
|ECU pin| It is an hardware electrical connection of the ECU with the rest of the electronic system
|ECU Signals|It is the software representation of an electrical signal. A signal has attributes and a symbolic name |Input voltage,Discrete Output, PWM Input …
|ECU Signal group|It is the software representation of a group of electrical signals from the same Class|Only for discrete Inputs and discrete Outputs
|Attributes|Characteristics that can be Software (SW) and Hardware (HW) for each kind of Signals existing in a ECU |Range, Lifetime / delay, …
|Symbolic name| The symbolic name of a signal is used by the IO Hardware Abstraction module to make a link (function, pin)
|Data Type|Analogue: Datatype of the signal Discrete: either bool or AUTOSAR defined type (BoolType) |(VoltageType, CurrentType, ResistanceType, BoolType) Each DataType has a given size: 16 bits or 32 bits
|Range |This is a functional range and not an electrical range.) For analogue signals [lowerLimit...upperLimit] (Voltage, current), [0...upperLimit] (resistance) For discrete signals [0,1] For timing signals [0…upperLimit] (period), [- 100…100%] (Duty Cycle)|[-12Volts...+12Volts] (voltage)
|Resolution|This attribute for many Classes is dependent on the range and the Data Type. Example: (upperLimit - lowerLimit) / (2datatypelength -1) For the others is known and defined. |Voltagemin = -12 Volts Voltagemax = 12 Volts Data Type : 16 bits Resolution => 24 / 65535
|Hardware Resolution|This is the maximum possible resolution of the hardware (ADC) |ADC converter could have a 8/10/12/16 bits resolution
|Hardware Accuracy|This is the accuracy of Hardware. It depends on hardware peripheral used for acquisition and/or generation |ADC converter could have an accuracy of +-3LSB
|Accuracy| It depends of hardware peripheral used for acquisition and/or generation. |ADC converter could be a a 8/10/12/16 bits converter
|Diagnosis|Diagnosis capability of the functionality |Diagnosis Not Supported (could be a static check) No valid information available Short to Power Supply Short to Ground Open Load Over Temperature Diagnosis OK
|Synchronization| A signal could be synchronize with another signal or with an event like a trigger|If a discrete signal is “TRUE”, acquire an analogue signal
|Access |Defines if the Signal is attached to a Get(Read) / Set(Write) feature.
|Inversion|Inversion between the physical value and the logical value. This attribute is not visible and not configurable by users of IO Hardware Abstraction. |Physical HighState -> (Signal=False) Physical LowState -> (Signal=True)
|Lifetime| Only for Inputs: It is the maximum allowed age of the data (time is in microseconds). If Lifetime is 0, then the signal is directly get from the register. |Lifetime = 0 is a direct access Lifetime = 1000µs the value read is at maximum 1ms older
|Delay|Only for Outputs: It is the maximum allowed time until an output is actually set (time is in microseconds) If Delay is 0, then the signal is set immediately|Delay = 0 is a direct access Delay = 100µs the command is set until 100µs elapse
|Filtering /Debouncing|It defines if the Signal is provided as a raw value or if a filtering/debouncing method is included in the IO Hardware Abstraction module for this Signal.|Raw, Debounce 3 Samples, Wait 10ms,
|Sampling Rate| Time period required to get a Signal value. |Sampling rate for a sampling windows (burst)
|Report Changes|This attribute is only applicable to Discrete Inputs. It defines the capability (or not) of reporting level changes.|Enable or Disable
|Pulse Test| This attribute means that the output shall be|tested thanks a dedicated pulse. If this attribute is not set, diagnosis will be done while using the output.|Available or non available


## 英日
日本語は仮訳

T.B.D.

# 参考(reference)

[1] Layered Software Architecture
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
[2] Software Standardization Template
AUTOSAR_TPS_StandardizationTemplate.pdfAUTOSAR 英語 単語帳 参考文献 AdventCalendar2022 

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


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


# 関連文書(Related document)

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

https://qiita.com/kaizen_nagoya/items/24a1ba5da3d09b2a95d1

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

https://qiita.com/kaizen_nagoya/items/4789832baf494cb74626

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


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

# 文書履歴(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.