Simulink some IP AutoSAR application - Vector Informatik

33
1 © 2020 MathWorks, Inc. SOME/IP 기반의 AUTOSAR Application 모델링 및 코드 생성 박찬식 Senior Application Engineer

Transcript of Simulink some IP AutoSAR application - Vector Informatik

Page 1: Simulink some IP AutoSAR application - Vector Informatik

1© 2020 MathWorks, Inc.

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

Page 2: Simulink some IP AutoSAR application - Vector Informatik

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

Page 3: Simulink some IP AutoSAR application - Vector Informatik

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

Page 4: Simulink some IP AutoSAR application - Vector Informatik

4

ADAS and Autonomous Driving

Page 5: Simulink some IP AutoSAR application - Vector Informatik

5

Signal-Oriented Communication

Node1 Node2

Node3 Node4

High Bus load

CAN LIN

Page 6: Simulink some IP AutoSAR application - Vector Informatik

6

Service-Oriented Communication

Node1 Node2

Node3 Node4

response

requestresponserequest

Ethernet

Page 7: Simulink some IP AutoSAR application - Vector Informatik

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

Page 8: Simulink some IP AutoSAR application - Vector Informatik

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

Page 9: Simulink some IP AutoSAR application - Vector Informatik

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

Page 10: Simulink some IP AutoSAR application - Vector Informatik

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

Page 11: Simulink some IP AutoSAR application - Vector Informatik

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

Page 12: Simulink some IP AutoSAR application - Vector Informatik

12

Client

Server

Event Feature Protocol

Find service Offer ServiceSubscribe

Positive/Negative

Event DataCancel

subscribe

Page 13: Simulink some IP AutoSAR application - Vector Informatik

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

Page 14: Simulink some IP AutoSAR application - Vector Informatik

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

Page 15: Simulink some IP AutoSAR application - Vector Informatik

15

Client

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

Find out more:

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

15:00 – 15:30

Page 16: Simulink some IP AutoSAR application - Vector Informatik

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

Page 17: Simulink some IP AutoSAR application - Vector Informatik

17

ara

::co

m

How to modelling an Application based on SOME/IP

Event Request Port

Client Server

Event Provide Port

ara

::co

m

Page 18: Simulink some IP AutoSAR application - Vector Informatik

18

How to modelling an Application based on SOME/IP

Client

Server

Page 19: Simulink some IP AutoSAR application - Vector Informatik

19

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

Client

Page 20: Simulink some IP AutoSAR application - Vector Informatik

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

Page 21: Simulink some IP AutoSAR application - Vector Informatik

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

Page 22: Simulink some IP AutoSAR application - Vector Informatik

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

Page 23: Simulink some IP AutoSAR application - Vector Informatik

23

Phase1 : Implement the Server in Classic sideSWC : Server

architecting

modelling server behavior

code generation

10

- 10

Page 24: Simulink some IP AutoSAR application - Vector Informatik

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

Page 25: Simulink some IP AutoSAR application - Vector Informatik

25

Phase1 : Test on the CANoe

Classic BSW Stack

CANoe

RTE

SWC : Server

Client

Client Code by CAPL

Page 26: Simulink some IP AutoSAR application - Vector Informatik

26

Phase1 : Test on the CANoe

Page 27: Simulink some IP AutoSAR application - Vector Informatik

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

Page 28: Simulink some IP AutoSAR application - Vector Informatik

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

Page 29: Simulink some IP AutoSAR application - Vector Informatik

29

Phase2 : Internal Test based on IPC

Page 30: Simulink some IP AutoSAR application - Vector Informatik

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

Page 31: Simulink some IP AutoSAR application - Vector Informatik

31

Phase 3: Integration Test between classic and adaptive

Page 32: Simulink some IP AutoSAR application - Vector Informatik

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

Page 33: Simulink some IP AutoSAR application - Vector Informatik

33

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