AUTOSAR Blocket SOME/IP Binding
显示 更早的评论
I created a simple model including the Event send and Event receiver Blocks from the AUTOSAR Blockset. Configure AUTOSAR Adaptive Software was performed through the Code Mappings editor and AUTOSAR Dictionary and code was generated using AUTOSAR Coder. (I will add a photo of the modeling. It is currently a simple model for communication and the LKAS algorithm will be added in the future)
My Matlab versiond is R2023b, and schema version is R19-03 (I also tried R20 and 21 versions). However, when the code is generated, there is a problem that ARXML is bound to DDS rather than SOME/IP. I understand that when generating code in Matlab, ARXML is read and CPP code is generated. However, ARXML does not include SOME/IP content and all interfaces are defined as DDS. Among the generated codes, files in the stub/aragen folder also have an interface defined using the eprosima_dds library.
So, is it not possible to develop SOME/IP ASW in Matlab? Or, I would like to ask if there is a configuration I set incorrectly.
4 个评论
Manikanta Aditya
2024-3-5
Hi,
It is indeed possible to develop SOME/IP Adaptive Software (ASW) in MATLAB. According to the information I found (Develop and Integrate AUTOSAR Classic and Adaptive Applications Based on SOME/IP - MATLAB & Simulink (mathworks.com)), MATLAB provides a Model-Based Design approach to develop heterogeneous software applications that communicate using SOME/IP (Scalable service-Oriented MiddlewarE over IP).
Regarding the issue you’re facing with ARXML being bound to DDS rather than SOME/IP, it seems like the eProsima Fast DDS stack is being used (Deploy DDS Applications - MATLAB & Simulink (mathworks.com)). This could be due to the configuration of your environment or the settings in your model.
Hope this helps!
Pratheek
2024-3-21
Starting in R2024a, the generated code for AUTOSAR Adaptive models supports SOME/IP binding for ara::com communication between adaptive applications. This feature is supported with the AUTOSAR Adaptive Linux Executable toolchain. The generated ServiceInstanceManifest.arxml file contains SOME/IP artifacts. For more information, see Additional XML Options.
Thanks
dahyun ko
2024-3-22
回答(1 个)
SACHIN KHANDELWAL
2024-4-15
0 个投票
When the model is set up for SOME/IP network binding, a configuration file named VSOMEIPConfig.json is created during the code generation process.This file will be used by the executable when launched using Linux Runtime Manager.
Here’s a breakdown of the information contained in this file:
- "unicast" - This is the IP address of the device where the executable is running.
- "service" and "instance": Both of these fields are filled with the Instance ID, a unique identifier that is specified in the AUTOSAR dictionary.
- "unreliable" - This refers to the UDP port used by the service.
- "name" - Name of the application which is populated with the name of the executable.
- "id" - Unique ID of the application which is populated with the Application ID.
I hope this information helps answer your query.
Thanks.
类别
在 帮助中心 和 File Exchange 中查找有关 Model Building and Assessment 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!