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 Comments

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!
dahyun ko
dahyun ko on 5 Mar 2024
Edited: dahyun ko on 5 Mar 2024
I modified several configurations, but some/ip binding failed.
How should I configure the configuration so that it binds to some/ip rather than dds?
I didn't used DDS Sender, Receiver block. I just used Sender, Receiver block in AUTOSAR Blocket.
Thank you.
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
Finally, I successed someip binding!!
But What's VSomeIPConfig.json file?
I can get this file when I generated code binding someip.
Is it involved vsomeip library?

Sign in to comment.

Answers (1)

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:
  1. "unicast" - This is the IP address of the device where the executable is running.
  2. "service" and "instance": Both of these fields are filled with the Instance ID, a unique identifier that is specified in the AUTOSAR dictionary.
  3. "unreliable" - This refers to the UDP port used by the service.
  4. "name" - Name of the application which is populated with the name of the executable.
  5. "id" - Unique ID of the application which is populated with the Application ID.
I hope this information helps answer your query.
Thanks.

Products

Release

R2023b

Asked:

on 5 Mar 2024

Answered:

on 15 Apr 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!