LoginSignup
0
0

posixとethernet, osekとTCP/IP, osek(31), Ethernet(39)

Last updated at Posted at 2022-10-29

posix と ethernetの関係をあまり調べてこなかったことに気がついた。 

理由は2つ。 

  1. 具体的なPOSIX の標準が、動くOSを添付していないから具体的なことは考えて来なかった。
    ソースコードがないと考えない派。

  2. POSIXのTest Suiteでcygwin(Windows), macOS, Linuxを試験したからPOSIXではなく、個々のOSを知ってればいいかと思ってしまった。 

説明資料を作ろうと思ってはたと困った。 

Ethernet Driverは、POSIXの上か下か。 

C言語のHosted環境で理解すれば、EthernetドライバがOSの機能を利用していればPOSIXの上。 
OSの機能を利用していなければPOSIXの下と考えてもいいかもしれない。 

C言語のFreestanding環境で理解すれば、OSEK OSを載せている場合には、 
OSの機能を利用している割り込みはCategory 2の割り込み。 
OSの機能を利用していない割恋はCategory1の割り込み。 

ひとまず、POSIXの横ってことにしよう。
TCP/IPは、POSIXの上でどうだろう。

ossk osが、基本タスクでUDPが、拡張タスクでTCPを扱うのによさげなOSだと気がついた。

<この項は書きかけです。順次追記します。>
This article is not completed. I will add some words in order.

posix

net/if.h - sockets local interfaces

netinet/in.h - Internet address family

netinet/tcp.h - definitions for the Internet Transmission Control Protocol (TCP)

posix test suite

Posix Test Suite docker downloads, tar, install。docker(110)
https://qiita.com/kaizen_nagoya/items/f1e24be04a2405ede00f

Open POSIX Test Suiteの使い方を調べはじめました
https://qiita.com/kaizen_nagoya/items/644d5e407f5faf96e6dc

Posix Test Suite 解凍方法(Windows power shell版)
https://qiita.com/kaizen_nagoya/items/57ee061892bc9afcf860

POSIX Test Suite <エンジニア夏休み企画>【読書感想文】【個人開発】
https://qiita.com/kaizen_nagoya/items/c29b237a5ac217ed73ce

「posix ethernet」 検索

Native Posix Ethernet

#define ETHERTYPE_IP 0x0800 /* IP /
#define ETHERTYPE_ARP 0x0806 /
Address resolution /
#define ETHERTYPE_REVARP 0x8035 /
Reverse ARP /
#define ETHERTYPE_VLAN 0x8100 /
IEEE 802.1Q VLAN tagging /
#define ETHERTYPE_IPV6 0x86dd /
IP protocol version 6 /
#define ETHERTYPE_LOOPBACK 0x9000 /
used to test interfaces */

SOA、POSIX、TSNが描く未来 ~車載Ethernetのトレンドと課題~
https://cdn.vector.com/cms/content/know-how/_technical-articles/Ethernet_Trends_AutomobilElektronik_201712_PressArticle_JP.pdf

Basic Networking with PikeOS
https://www.sysgo.com/basic-networking-pikeos

OSEK and TCP/IP

Specification of TCP/IP Stack, AUTOSAR 617, R23-11, CP
https://qiita.com/kaizen_nagoya/items/bfc7305e7a6c3ceb8c85

Specification of Socket Adaptor, AUTOSAR 416, R23-11, CP
https://qiita.com/kaizen_nagoya/items/f6de972d95d4c607df69

TCP/IP stack
https://qiita.com/kaizen_nagoya/items/b4750b7b8701fc5b0f07

Autosar と Ethernet, TCP/IP

AUTOSAR classic platformは CAN と OSEK/VDX
AUTOSAR adaptive platformは Ethernet と POSIX

EtehrnetとPOSIXでできていたRPC(remote procedure call)のようなことをCAN OSEK/VDXでやろうとしてきたのがAUTOSAR classic platformだと考えるとわかりやすいかも。

Specification of Ethernet Driver, No.430, AUTOSAR R21-11(179) CP
https://qiita.com/kaizen_nagoya/items/5c0cee0c983182d4da4d

Specification of Wireless Ethernet Driver, No.798, AUTOSAR 21-11 (192) CP
https://qiita.com/kaizen_nagoya/items/b63e5cfd5d3816171d0a

Specification of Wireless Ethernet Transceiver Driver, No.799, AUTOSAR 21-11 (201) CP
https://qiita.com/kaizen_nagoya/items/6a3c8eb7a40b65b74a9b

Specification of Ethernet Interface, No.417, AUTOSAR R21-11(174) CP
https://qiita.com/kaizen_nagoya/items/5a22645103c40cd0da68

Specification of Ethernet State Manager, No.415, AUTOSAR 21-11 (194) CP
https://qiita.com/kaizen_nagoya/items/7c4f162dd4e967f325f5

Ethernet 記事一覧 Ethernet(0)
https://qiita.com/kaizen_nagoya/items/88d35e99f74aefc98794

<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>
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 初稿   20221029
ver. 0.02 add osek and TCP/IP 20240427

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

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

Thank you very much for reading to the last sentence.

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0