OSEKを図(2)から理解  OSEK(2)

Understanding OSEK from the Figures.
Entendiendo OSEK a partir de la Figura。

自分のエンジニアリングのキャリアを振り返るにあたって、
UMLに基づいてとOSEKの図について説明する。

UMLは、国際規格になる際の、ISO/IEC JTC1 SC7の日本の委員会である情報処理学会情報企画長会のSC7専門委員会の幹事をしていて、投票と審議に参加していました。

ISO/IEC 19501:2005 Information technology — Open Distributed Processing — Unified Modeling Language (UML) Version 1.4.2
https://www.iso.org/standard/32620.html
改訂は行わず、新しいUMLは別番号の規格として発行。

ISO/IEC 19505-1 2012 Information technology — Object Management Group Unified Modeling Language (OMG UML) Part 1: Infrastructure
https://www.iso.org/standard/32624.html
ISO/IEC 19505-2:2012 Information technology — Object Management Group Unified Modeling Language (OMG UML) Part 2: Superstructure
https://www.iso.org/standard/52854.html

UML2.5.1は公開
https://www.omg.org/spec/UML/2.5.1/PDF

ISO OSEKは、審議している関係委員会には直接参加していませんでしたが、自動車の標準を決める委員会に、ISO/IEC JTC1 SC7からのliaison担当をしていました。
SO 17356-3:2005　Road vehicles — Open interface for embedded automotive applications　Part 3: OSEK/VDX Operating System (OS)
https://www.iso.org/standard/40079.html

OSEK/VDX OS 本家からの公開
https://www.irisa.fr/alf/downloads/puaut/TPNXT/images/os223.pdf

<この項は書きかけです。順次追記します。>
This article is not completed. I will add some words in order.
# State Machine
## Figure 4-1 Extended task state model
![コメント 2024-02-16 164458.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/e9b06783-0159-9159-0016-687b947937cf.png)
UML 14.2.3.4.3 State entry, exit, and doActivity Behaviors
>A State may have an associated entry Behavior. This Behavior, if defined, is executed whenever the State is entered through an external Transition. In addition, a State may also have an associated exit Behavior, which, if defined, is executed whenever the State is exited.

Thera are no entry as power of and exit as power off in Figure 4-1.

## Figure 4-2 States and status transitions for extended tasks

## Figure 4-3 Basic task state model

![コメント 2024-02-16 164518.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/42158b40-c471-f796-f24a-de33f0dd8247.png)

Thera are no entry as power of and exit as power off in Figure 4-3.

## Figure 4-4 States and status transitions for basic tasks
# Component
## Figure 1-1 Software interfaces inside ECU

![コメント 2024-02-16 164320.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/ed211047-e219-d9c6-f372-1bfe6886a7ab.png)

The InputOutput system on Figure 1-1 may be Interrupt service routne(ISR)s.
If there are no connection with Operating system(OS) , the ISR are without OS ISR(category 1).

There are no with os(Category 2) interrupt service routine(ISR) in the Figure1-1.

## Figure 3-1 Processing levels of the OSEK operating system

![コメント 2024-02-16 164358.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/f3cacaa8-7646-ec4c-4c76-7866ef0801c5.png)

Please add next sentences or figures.
1 without OS-services are Category 1 Interrupt Service Routene
2 with OS-services are Category 1 Interrupt Service Routene
Make a third box and extend the arrow logical level for scheduling activities

3 logical level for scheduling activities
Is this task schedulr? 

4 waiting: yes is extended task.
 waiting : no is basic task.

5 preemption: non are not real time operation mode.
preemption: full are real time operation mode.

## Figure 3-2 Restricted upward compatibility for conformance classes![コメント 2024-02-16 164417.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/5d569001-30b0-6998-0910-d1a1384c3000.png)
BCC: Basic Conformance Classes
ECC: Extended  Conformance Classes
## Figure 3-3 The minimum requirements for Conformance Classes
![コメント 2024-02-16 164433.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/5345f608-237e-4a31-06e6-f925b7da6a87.png)

BT = Basic Task
ET = Extended Task

## Figure 4-4 States and status transitions for basic tasks
![コメント 2024-02-16 164538.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/56e91d27-0074-198d-0476-f30f32a81262.png)

## Figure 4-5 Scheduler: order of events

![コメント 2024-02-16 164558.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/d099ff06-ae64-c3e1-00cd-0df8ff6e2e90.png)

Figure 4-5 explain BCC2 or ECC2, because some tasks are in  same priority.
There are many FIFO queues, but one buffer for tasks may be designed.

# Timing Diagram(UML 17.11)/ Timing Chart.
There are no analog input and output definition in this document.
It could mean analog curve can be described in timing diagrams.

## Figure 4-6 Full preemptive scheduling (Timing chart)
![コメント 2024-02-16 164616.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/cfe2066b-c0a5-890c-fed3-d95b839dc629.png)

## Figure 4-7 Non preemptive scheduling (Timing chart)
![コメント 2024-02-16 164634.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/6c700f0f-0964-9e8d-3c7b-4d9714e8ed8a.png)
## Figure 6-1 ISR categories of the OSEK operating system
![コメント 2024-02-16 164720.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/31143531-992b-f03a-0b84-53ff80d78af0.png)
![コメント 2024-02-16 164745.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/ca38a60c-f2e6-3184-5fea-d6eab3afff61.png)

--- error

![コメント 2024-02-16 164836.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/79c7cc4b-ecd9-16b1-865d-e1068274199d.png)
![コメント 2024-02-16 164853.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/4c8e35d3-faf7-65be-1acc-aca8c720a3db.png)
![コメント 2024-02-16 165723.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/12883ed7-de4a-e455-9b57-3ef217fcc705.png)
![コメント 2024-02-16 165756.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/8822a426-3c85-5afa-fdd7-18c9e4938549.png)
![コメント 2024-02-16 165818.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/a733c133-05f3-583a-e6eb-0069d4e66621.png)
![コメント 2024-02-16 165842.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/c84a2ecd-9343-a555-acdd-334619120a88.png)
![コメント 2024-02-16 165909.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/6c1a7565-f9ed-e504-bcb2-7581812f8b7e.png)

--- error 
![コメント 2024-02-16 165946.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/9110e035-fee6-326d-a3a6-ea596b9271ee.png)
![コメント 2024-02-16 170022.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/a060bfc5-e561-6e15-94ec-1635e64c5821.png)
![コメント 2024-02-16 170117.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/c4478e4c-42f0-9882-f6a2-4feb5dec8c42.png)
![コメント 2024-02-16 170134.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/72895797-90b4-579c-d717-6287149060b9.png)
![コメント 2024-02-16 170149.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/458b6388-c085-0f2b-8bf4-bba8b82c0549.png)
![コメント 2024-02-16 170211.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/f9e6fc3e-2c82-5ecb-bc33-11b461e4e211.png)
![コメント 2024-02-16 170234.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/3ae8edca-ec26-e217-e784-2458350003e7.png)
![コメント 2024-02-16 170257.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/23e56756-ec8f-4f23-527e-69bd5f12b789.png)


# sourcee code

![TASK.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/51423/1319e075-c04d-27e4-77df-eff74ebc6eac.png)


# 参考資料(Reference)
aspberry Pi 3 Model B+ 向けにリアルタイムOSを実装してみた話
https://qiita.com/tenkoh2/items/baa8e0b6c09669793b4f

[メモ] TrampolineRTOSでLチカ (OSEK/VDX & AUTOSAR APIにあわせたRTOS)
https://qiita.com/mt08/items/65f2ac9bbdae09a34470

MacでLego Mindstorms NXT環境構築 in 2018
https://qiita.com/vivid344/items/2f23f846cd3b135c5a74

ETロボコン開発環境構築 for Mac
https://qiita.com/tac0x2a/items/b1d82050c660935765ef

# 関連資料
' @kazuo_reve 私が効果を確認した「小川メソッド」
https://qiita.com/kazuo_reve/items/a3ea1d9171deeccc04da

' @kazuo_reve 新人の方によく展開している有益な情報
https://qiita.com/kazuo_reve/items/d1a3f0ee48e24bba38f1

' @kazuo_reve Vモデルについて勘違いしていたと思ったこと
https://qiita.com/kazuo_reve/items/46fddb094563bd9b2e1e

プログラマが知っていると良い「公序良俗」
https://qiita.com/kaizen_nagoya/items/9fe7c0dfac2fbd77a945

逆も真：社会人が最初に確かめるとよいこと。OSEK(69)、Ethernet(59)
https://qiita.com/kaizen_nagoya/items/39afe4a728a31b903ddc

「何を」よりも「誰を」。１０年後のために今見習いたい人たち
https://qiita.com/kaizen_nagoya/items/8045978b16eb49d572b2

## 自己参照(self reference)
OSEKはもう流行らないのでしょうか。AUTOSAR（64）OSEK(1) 
https://qiita.com/kaizen_nagoya/items/b87687254b11f30cc2ee
OSEKを図から理解 OSEK(2) 
https://qiita.com/kaizen_nagoya/items/f87a7ff5aeb63803a022
OSEK OS（AUTOSAR OS）をざっくり理解するには OSEK(3) 
https://qiita.com/kaizen_nagoya/items/c68c0b86b97d4a90e6e2
calloutとcallback, OSEK/VDX OS and AUTOSAR OSEK(4) 
https://qiita.com/kaizen_nagoya/items/b95b81354d07b9172a56
OSEK/VDX ISO and 2.23 OSEK(5) 
https://qiita.com/kaizen_nagoya/items/4d6bcec01e0132f9c41c
OSEK/VDX OSEK(6) 
https://qiita.com/kaizen_nagoya/items/a7720994f2178a15be81
ISO OSEK/VDX and ISO Linux OS 同梱ソースをC++またはRUSTで書く企画　OSEK(7) 
https://qiita.com/kaizen_nagoya/items/27899e936c90b415d700
OSEK 記事で views 100,000を目指して　OSEK(8) 
https://qiita.com/kaizen_nagoya/items/ff45ee55566eeff5f62e
自動車用OSを網羅する OSEK(9) 
https://qiita.com/kaizen_nagoya/items/a61144daf500a3f2b4f4
Smallest Set Profile and Automotive Profile, OSEK(10) 
https://qiita.com/kaizen_nagoya/items/0c5484f6562cc259e7f0
Exclusive Area, OSEK(11)　
https://qiita.com/kaizen_nagoya/items/d87ff4e08378dbcf68a7
自動車のソフトウェア、例えばAUTOSAR の仕事を始めてする方に, OSEK(12) 
https://qiita.com/kaizen_nagoya/items/1832634788c23498e054
名古屋で自動車関係のソフトウェア設計する際にあるといいかもしれない知識, OSEK(13) 
https://qiita.com/kaizen_nagoya/items/9f01d55e4bd0bd931c96
single task os and data, OSEK(14) 
https://qiita.com/kaizen_nagoya/items/6acbd5d2cfd3ed8bca60
AUTOSARといえば O で始まる用語は? OSEK(15) 
https://qiita.com/kaizen_nagoya/items/06c969fe5c4b3e7319e0
Automotive Software Expert Examination Exercise, Examples or Extract. OSEK(16) 
https://qiita.com/kaizen_nagoya/items/1762e0612ef01e036efb
自動運転資料集(1) OSEK(17) 
https://qiita.com/kaizen_nagoya/items/42eb2129e281f25eaab8
TOPPERS of the YearとAUTOSAR, AUTOSAR(39), OSEK(18) 
https://qiita.com/kaizen_nagoya/items/f241bb4a819733110b7a
Autosar 2.0を読む, AUTOSAR(25), OSEK(19) 
https://qiita.com/kaizen_nagoya/items/b44a1047c2c517d522fe
IT関連技術でお世話になった方々, OSEK(20) 
https://qiita.com/kaizen_nagoya/items/8a5bf487594cd106e8b8
AUTOSARの４つの入力, OSEK(21)  
https://qiita.com/kaizen_nagoya/items/72cef6028b9697f7968e
AUTOSAR これだけ知っていればなんとかなる。OSEK(22) 
https://qiita.com/kaizen_nagoya/items/7a63e706bfb8f331cfe4
AUTOSAR based on ISO, OSEK(23) 
https://qiita.com/kaizen_nagoya/items/867a709cdf6f4dbdecc6
AUTOSARと国際規格。AUTOSAR（65), OSEK(24)  
https://qiita.com/kaizen_nagoya/items/4ddba03efb942969b125
AUTOSAR入門, AUTOSAR(16), OSEK(25) 
https://qiita.com/kaizen_nagoya/items/5e43b8ef0935c32ee11d
AUTOSAR 記事1000までの道, OSEK(26) 
https://qiita.com/kaizen_nagoya/items/785473512f5f7f85a6bf
Autosarの課題, OSEK(27)  
https://qiita.com/kaizen_nagoya/items/617d10b0e34143030600
AUTOSAR: The past 20 years and he next 10 years, OSEK(28) 
https://qiita.com/kaizen_nagoya/items/2dab0707c01059c152c4
Autosar文書を読む（準備), OSEK(29)　
https://qiita.com/kaizen_nagoya/items/5f547173544703d267aa
AUTOSARが手に取るように分かるようになる。AUTOSAR(29), OSEK(30)
https://qiita.com/kaizen_nagoya/items/ae092ea6aef89cdc15df
posixとethernet, osekとTCP/IP, osek(31) 
https://qiita.com/kaizen_nagoya/items/73b79a4a56f433bd53c0
斉藤直希「組み込み向けリアルタイムOSの基礎知識を整理する」を整理する, OSEK(32) 
https://qiita.com/kaizen_nagoya/items/d305e83b37d0c57dceb3
TOPPERS活用アイデア・アプリケーション開発コンテスト受賞作品紹介　まとめ作成中, OSEK(33)
https://qiita.com/kaizen_nagoya/items/72b882d96b2841f25faf
はじめてのAUTOSAR(classic platform) ＜エンジニア夏休み企画>【読書感想文】, OSEK(34) 
https://qiita.com/kaizen_nagoya/items/696ad320f76f284664d7
AUTOSARとSimulink: Adaptive Platform, Classic Platformとマルチコア・共通化, OSEK(35) 
https://qiita.com/kaizen_nagoya/items/d613b0b14bfd91989a13
AUTOSAR Abstract Platformへの道（詳細編）, OSEK(36)
https://qiita.com/kaizen_nagoya/items/cb217133884fa0a2c704
building block：AUTOSAR Abstruct Platform , OSEK(37),
https://qiita.com/kaizen_nagoya/items/bf7c17624f648fb9f392
系建築家(system architect)になるには, OSEK(38) 
https://qiita.com/kaizen_nagoya/items/8c341e69233cb32f6275
自己紹介 OSEK(39) 
https://qiita.com/kaizen_nagoya/items/90aa368f296613ec93b5
AUTOSAR 「完全に理解した」, OSEK(40) 
https://qiita.com/kaizen_nagoya/items/51983798ad7902b33cb1

官公庁・学校・公的団体（NPOを含む）システムの課題、官（０）
https://qiita.com/kaizen_nagoya/items/04ee6eaf7ec13d3af4c3

プログラマが知っていると良い「公序良俗」
https://qiita.com/kaizen_nagoya/items/9fe7c0dfac2fbd77a945

LaTeX(0) 一覧　
https://qiita.com/kaizen_nagoya/items/e3f7dafacab58c499792

自動制御、制御工学一覧（０）
https://qiita.com/kaizen_nagoya/items/7767a4e19a6ae1479e6b

Rust(0) 一覧　
https://qiita.com/kaizen_nagoya/items/5e8bb080ba6ca0281927

小川清最終講義、最終講義（再）計画, Ethernet(100) 英語(100) 安全(100)
https://qiita.com/kaizen_nagoya/items/e2df642e3951e35e6a53

＜この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。＞
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 初稿 　20240217
### 最後までおよみいただきありがとうございました。
いいね　💚、フォローをお願いします。
#### Thank you very much for reading to the last sentence.
Please press the like icon 💚　and follow me for your happy life.