Interoperability Between DDS Blockset and AUTOSAR Adaptive Applications - MATLAB & Simulink
Video Player is loading.
Current Time 0:00
Duration 3:51
Loaded: 4.28%
Stream Type LIVE
Remaining Time 3:51
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected
    Video length is 3:51

    Interoperability Between DDS Blockset and AUTOSAR Adaptive Applications

    The Embedded Coder® Support Package for Linux® applications can be used to deploy and prototype AUTOSAR Adaptive application components on a Linux target. This support package includes Linux Runtime Manager, which can be used to deploy and calibrate the AUTOSAR adaptive model on a Linux target as an adaptive application.

    Published: 29 Sep 2022

    Hello, everyone. This video will walk you through the interoperability between DDS Blockset and AUTOSAR adaptive applications. I am a developer in Control Design Automation. There are two models here, one is a DDS Blockset model, which is deployed on development computer that is Windows or Linux, and the other is an AUTOSAR adaptive model, which is deployed on Docker container on the next target.

    This AUTOSAR adaptive model is deployed using the embedded code support package for Linux applications. These two applications will communicate over the DDS network. The output of the DDS in the model and input of DDS receiver model are map of the domain with domain ID 0 and topic name sign.

    We are using simplistic example models because focus is on interoperability. DDSSend model has one output, which sends the data to SineWriter. DDSReceive model has one input, which receives the data sent by DDSSend model. These two models are linked to the same data dictionary.

    Let's open the DDS dictionary to see what DDS artifacts it contains. There is one domain library that is Math DomainLibrary which has one domain name, TrigonometryDomain with domain 0. This domain has a topic sign which is of type WaveType.

    Let's click on the Build button in the DDSSend model. This changes the code and the executable. Let's migrate this DDSReceive model to AUTOSAR adaptive model. Let's call the migrate API to do that.

    Here is the AUTOSAR adaptive receiver model, which is created by the API. Let's create the API object from model name. Let's verify that the topic name and domain name used in AUTOSAR adaptive model study are same as that are used in DDS model. Retrieve topic name using get method and the topic name is sign. Retrieve domain ID and its value is 0.

    Let's open the Linux runtime manage app and enter the details of Linux target machine and connect to the target. Let's deploy the AUTOSAR Adaptive model onto the next target. To deploy, we need to set the toolchain to AUTOSAR Adaptive Linux Executable.

    Let's make the changes and exit the Slave Configuration settings. Choose the transport whereas XCP ON TCP/IP. And select IP address same as the top Linux target machine.

    Now the model is ready for deployment. Let's click on Create and apply software package button and choose AUTOSAR Adaptive Model. This deploys the model on the next target machine.

    Let's open command prompt and start media center executable which sends data view. Next, The data in link data inspector, set up to Signals to the right side for streaming and click on Monitor and Tune button.

    Let's open SDI. And here, we can see the data, which is sent by DDSSend Application. Let's start DDSSend executable from command from now we can see that the value is SDI 0. Next up, the adaptive receiver application from UI.

    And now the application is tapped. For more information, go through the documentation of Embedded Coder Support package for Linux applications. So this brings us to the end of the video. Hope you enjoyed the video.

    Related Products