Simulink some IP AutoSAR application - Vector Informatik

Post on 05-Nov-2021

14 views 3 download

Transcript of Simulink some IP AutoSAR application - Vector Informatik

1© 2020 MathWorks, Inc.

SOME/IP기반의 AUTOSAR Application 모델링및코드생성박찬식Senior Application Engineer

2

Agenda

▪ Introduction about SOME/IP

▪ How to model an application and code generation based on SOME/IP

– Classic AUTOSAR

– Adaptive AUTOSAR

▪ Demo

– Integration generated code with Vector Tools for Event feature

3

Agenda

▪ Introduction about SOME/IP

▪ How to model an application and code generation based on SOME/IP

– Classic AUTOSAR

– Adaptive AUTOSAR

▪ Demo

– Integration generated code with Vector Tools for Event feature

4

ADAS and Autonomous Driving

5

Signal-Oriented Communication

Node1 Node2

Node3 Node4

High Bus load

CAN LIN

6

Service-Oriented Communication

Node1 Node2

Node3 Node4

response

requestresponserequest

Ethernet

7

RTE RTE

BSW BSW

MCAL MCAL

Client Server

double func(int a, int b)

{

return x;

}

d = func(a, b);

Request

Response

How to Invoke the Function in Different Node

8

Remote Procedure Call (RPC)

Application

HTTP

FTP

POP3TELNET

SMTP

RPC

Client Server

double func(int a, int b)

{

return x;

}

d = func(a, b);

serialization

9

SOME/IP (Scalable service-Oriented MiddlewarE over IP)

RTE RTE

Client Server

double func(int a, int b)

{

return x;

}

d = func(a, b);

Request

Response

SOME-IP SOME-IP

10

SOME/IP features in AUTOSAR

C S

C S

C S

C S

Method

Request/Response

Method

Fire/Forget

Event

Field

SOME/IP Features

Supported by

AUTOSAR Blockset

Method Request & Response

(Asynchronous Call)Future Release Future Release

Method Request & Response

(Synchronous Call)

Supported

from 2019bFuture Release

Method Fire & Forget Future Release Future Release

EventSupported

from 2019b

Supported

from 2019b

FieldSupported

from 2019bFuture Release

11

Agenda

▪ Introduction about SOME/IP

▪ How to model an application and code generation based on SOME/IP

– Classic AUTOSAR

– Adaptive AUTOSAR

▪ Demo

– Integration generated code with Vector Tools for Event feature

12

Client

Server

Event Feature Protocol

Find service Offer ServiceSubscribe

Positive/Negative

Event DataCancel

subscribe

13

RT

E

RT

E

How to model an Application based on SOME/IP

mode request port

mode switch port

mode request port

mode switch port

mode request port

mode switch port

S/R port S/R port

offer

service

find

service

subscribe

eventcheck

subscribe

BS

WM

SD

Event Data

Client Server

BS

WM

SD

14

How to model an Application based on SOME/IP

Client

Server

Find Service

Check Service

Subscribe EventFeedback Subscribe Event

Offer Service

Check Subscribe

Receive Event Data

From Server

Send Event Data

To Client

15

Client

How to generate code for an Application based on SOME/IP

Find out more:

세션 2: AUTOSAR 기반의자동코드생성과검증방안

15:00 – 15:30

16

Agenda

▪ Introduction about SOME/IP

▪ How to model an application and code generation based on SOME/IP

– Classic AUTOSAR

– Adaptive AUTOSAR

▪ Demo

– Integration generated code with Vector Tools for Event feature

17

ara

::co

m

How to modelling an Application based on SOME/IP

Event Request Port

Client Server

Event Provide Port

ara

::co

m

18

How to modelling an Application based on SOME/IP

Client

Server

19

How to generate code for an Application based on SOME/IP

Client

20

Agenda

▪ Introduction about SOME/IP

▪ How to model an application and code generation based on SOME/IP

– Classic AUTOSAR

– Adaptive AUTOSAR

▪ Demo

– Integration generated code with Vector Tools for Event feature

21

Overview of Demo

N

N NN

N NN

A

A

CC

C

N Non - AUTOSAR

C Classic - AUTOSAR

A Adaptive - AUTOSAR

Client Server

- 10

10

SOME/IP Event Data

22

Structure of Demo

Classic AUTOSAR Adaptive AUTOSAR

BSW Stack

CANoe

RTE

Windows

Ethernet

BSW Stack

ARA::COM

Linux (Ubuntu)

SOME/IP Daemon

SWC : Server SWC : ClientSWC : Server

Client

Phase 1 Phase 2

Phase 3

23

Phase1 : Implement the Server in Classic sideSWC : Server

architecting

modelling server behavior

code generation

10

- 10

24

Phase1 : Integration generated code with Classic Autosar Stack

Classic BSW Stack

CANoe

RTE

SWC : Server

generated code

- generated code for BSW configuration

- BSW Static Code

+*.dll

25

Phase1 : Test on the CANoe

Classic BSW Stack

CANoe

RTE

SWC : Server

Client

Client Code by CAPL

26

Phase1 : Test on the CANoe

27

Phase2 : Implement the Server and Client in Adaptive side

arxml for ECU extract

modelling client behavior

SWC : ClientSWC : Server

modelling server behavior

code generation

code generation

28

Phase2 : Integration generated code with Adaptive Autosar Stack

and Internal Test based on IPC

generated code server and client

+

generated interface code and static codedaemon for SOME/IP

executable for clientexecutable for server

SWC : ClientSWC : Server

29

Phase2 : Internal Test based on IPC

30

Server

Classic Autosar Stack

client

Adaptive Autosar Stack

VMware

CANoe

Ubuntu 18.04

IP : 192.168.1.11

IP : 192.168.1.100

Phase 3: Integration Test between classic and adaptive

31

Phase 3: Integration Test between classic and adaptive

32

Key Takeaways

▪ What is SOME/IP?

▪ Four features of SOME/IP : Method R/R, Method F/F, Event, Field

▪ How to model and generate codes for an application based on

SOME/IP

▪ Integration between generated codes and BSW tools

33

박찬식� 부장�r�o�y�p�a�r�k�@�m�a�t�h�w�o�r�k�s�.�c�o�m