simulink some ip autosar application - vector informatik
TRANSCRIPT
![Page 1: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/1.jpg)
1© 2020 MathWorks, Inc.
SOME/IP기반의 AUTOSAR Application 모델링및코드생성박찬식Senior Application Engineer
![Page 2: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/2.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/3.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/4.jpg)
4
ADAS and Autonomous Driving
![Page 5: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/5.jpg)
5
Signal-Oriented Communication
Node1 Node2
Node3 Node4
High Bus load
CAN LIN
![Page 6: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/6.jpg)
6
Service-Oriented Communication
Node1 Node2
Node3 Node4
response
requestresponserequest
Ethernet
![Page 7: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/7.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/8.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/9.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/10.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/11.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/12.jpg)
12
Client
Server
Event Feature Protocol
Find service Offer ServiceSubscribe
Positive/Negative
Event DataCancel
subscribe
![Page 13: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/13.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/14.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/15.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/16.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/17.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/18.jpg)
18
How to modelling an Application based on SOME/IP
Client
Server
![Page 19: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/19.jpg)
19
How to generate code for an Application based on SOME/IP
Client
![Page 20: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/20.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/21.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/22.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/23.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/24.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/25.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/26.jpg)
26
Phase1 : Test on the CANoe
![Page 27: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/27.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/28.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/29.jpg)
29
Phase2 : Internal Test based on IPC
![Page 30: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/30.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/31.jpg)
31
Phase 3: Integration Test between classic and adaptive
![Page 32: Simulink some IP AutoSAR application - Vector Informatik](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/32.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022012508/618513d8d808e37542048b70/html5/thumbnails/33.jpg)
33
박찬식� 부장�r�o�y�p�a�r�k�@�m�a�t�h�w�o�r�k�s�.�c�o�m