关于TargetLink的更多信息

TargetLink Classic AUTOSAR模块库。

Classic AUTOSAR支持

TargetLink支持大多数Classic AUTOSAR通信机制,并生成真正的RTE API 函数调用。

Classic AUTOSAR软件组件建模

设计Classic AUTOSAR软件组件

TargetLink Classic AUTOSAR Block Library可提供各种Classic AUTOSAR结构元素,例如runnable对象、端口和通信接口等,用于建模。为了定义Classic AUTOSAR Runnable,Function模块可指定为子系统中使用的Classic AUTOSAR Runnable,与常规TargetLink功能相似。

TargetLink模块对话框中的AUTOSAR页面

TargetLink InPort和OutPort模块用来定义一个或多个软件组件的可运行对象之间的数据交换。开发人员基于模块级制定属性,并通过TargetLink Data Dictionary实现。

利用RTE API函数调用(即Rte_IRead()、Rte_Pim() 和Rte_IWrite())生成的C代码

生成兼容Classic AUTOSAR的代码

TargetLink生成用于Classic AUTOSAR软件组件的产品级代码。此外,TargetLink提供的特殊选项可以优化Classic AUTOSAR。Runnable对象作为C函数进行实施,Classic AUTOSAR通信机制根据Classic AUTOSAR标准,作为RTE API函数调用进行实施。该模型还可用于生成兼容Classic AUTOSAR的代码和标准Targetlink代码。

仿真和测试Classic AUTOSAR软件组件

TargetLink可以在所有仿真模式下仿真Classic AUTOSAR软件组件。一次仿真运行可以同时仿真多个软件组件。软件组件之间的通信可通过Simulink®设计环境支持进行仿真。为了在SIL和PIL仿真模式下进行测试,TargetLink会生成了一个存根RTE,它将应用程序中的RTE API函数调用与软件组件代码映射到全局变量,并生成对全局变量的访问函数。

Classic AUTOSAR开发往返过程示例

Classic AUTOSAR 工具链中的TargetLink

TargetLink通常结合AUTOSAR架构工具(如 SystemDesk),进行Classic AUTOSAR软件开发。含有多个组件的软件架构在架构工具中指定。同时,可以利用TargetLink 帮助设计和实现单个软件组件。这两个工具通过ARXML文件交换数据。有两种方法可以进行Classic AUTOSAR双向运行,一种是自上而下(从软件体架构开始),还有一种是自下向上(从Targetlink功能模型开始)。使用dSPACE AUTOSAR Compare,可以简化和自动化此AUTOSAR往返过程,您可以进行比较,并手动或自动合并其AUTOSAR工件。

Classic AUTOSAR非常有用的功能和实用工具(示例)

Feature/Utility Description Benefit
Importing and exporting software component descriptions.
  • Based on TargetLink AUTOSAR models, ARXML files can be exported directly from TargetLink.
  • Importing and merging existing software component descriptions to the TargetLink Data Dictionary.
Seamless Classic AUTOSAR development process with a tool such as SystemDesk and dSPACE AUTOSAR Compare.

Generating a Classic AUTOSAR frame model.

  • Generating and updating a frame model containing the relevant ports and runnables to handle AUTOSAR specification.
  • From this starting point, inserting the control algorithm into the model frame to obtain a complete Classic AUTOSAR software component.
  • Generating SWC compositions as frames.
Easy and convenient transfer of AUTOSAR specifications into the TargetLink model.
Migrating standard TargetLink models to Classic AUTOSAR.
  • TargetLink AUTOSAR Migration Tool for automatically converting individual subsystems to Classic AUTOSAR runnables.
  • Supporting the flexible specification of Classic AUTOSAR properties.
Highest flexibility when reusing existing software parts.
Classic AUTOSAR Modeling Guide Explains how to model and generate code for Classic AUTOSAR software components. Support while developing Classic AUTOSAR software components with the model-based development approach of TargetLink.
TargetLink Adaptive AUTOSAR模块库

Adaptive AUTOSAR支持

TargetLink支持Adaptive AUTOSAR的选定功能,例如:

  • 使用功能集群ara::com定义的元素导入和导出ARXML文件。
  • 使用功能集群ara::per定义的元素导入ARXML文件。
  • 对基于服务的通信的选定部分进行建模,如功能集群ara::com所述。
  • 对持久内存访问的部分建模进行建模,如功能集群ara::per所述。
  • 建模和仿真错误处理,如功能集群ara::com和ara::per所述。

利用TargetLink进行Adaptive AUTOSAR事件通信建模

设计Adaptive AUTOSAR应用程序

TargetLink支持基于模型开发自适应应用程序的功能部分。它会为您提供不同的模型元素来建模各种功能。

根据ara::com,支持下列用例来进行通信建模:

  • 作为服务使用者或服务提供者访问字段。
  • 发送或接收事件。
  • 调用或实现方法。
  • 建模和仿真错误处理

此外,TargetLink支持持久数据访问的建模,即根据ara::per,从键-值存储中读取和写入键-值对。

生成用于Adaptive应用程序的代码

TargetLink从为Adaptive AUTOSAR指定的子系统中生成Adaptive AUTOSAR函数。Adaptive AUTOSAR函数是特定的TargetLink C++函数,表示自适应应用程序的部分功能。该函数可以在自适应应用程序的C++代码中调用。

仿真和测试Adaptive AUTOSAR模型

TargetLink可以在MIL和SIL仿真模式下,仿真Adaptive AUTOSAR模型。TargetLink在构建用于SIL仿真的仿真应用程序的同时,使用预处理器宏程序和条件编译。这样,就可以在TargetLink中直接仿真Adaptive AUTOSAR函数,不需要Adaptive AUTOSAR中间件。此外,TargetLink支持Adaptive AUTOSAR指定的通信过程中的建模错误处理。

Adaptive AUTOSAR非常有用的功能和实用工具(示例)

Feature/Utility Description Benefit
MIL and SIL simulation Directly simulating the Adaptive AUTOSAR function in TargetLink without Adaptive AUTOSAR middleware. Easily simulate and validate your Adaptive AUTOSAR functionality in the development environment. TargetLink allows for comfortable and straight-forward testing without setting up, configuring, and maintaining a build chain for Adaptive AUTOSAR.
Modeling of select Adaptive AUTOSAR functional clusters Model persistent data access as defined by ara::per by reading and writing key-value pairs from a key-value storage. Modeling communication as defined by ara::com:
  • Accessing fields as a service consumer or service provider.
  • Sending or receiving events.
  • Calling or implementing a method.
Convenient and well-known modeling similar to Classic AUTOSAR modeling in TargetLink.
Adaptive AUTOSAR Modeling Guide Explains how to model and generate code according to Adaptive AUTOSAR for the integration into adaptive applications. Support while developing functional parts of adaptive applications with the model-based development approach of TargetLink.

Calibration File Generation

Another important requirement for a code generator is to have close links with calibration systems. ECU code must be prepared for parameter fine-tuning by making calibratable or measurable variables accessible to a calibration system. TargetLink supports the generation of the standardized ASAM MCD-2 MC file format (formerly ASAP2) via the Data Dictionary to make the variables and parameters available for ECU calibration. All major calibration tools support this standard. Because the C code and the ASAM MCD-2 MC file are generated with the same data basis, they are always consistent. This eliminates another error source, and streamlines the development process. TargetLink offers several predefined variable classes for calibratable and measurable variables. You can also specify your own classes, ensuring that each class holds suitable attributes for calibration and/or measurement.  

AUTOSAR As a de-facto standard for automotive E/E architectures, AUTOSAR contains specifications for communication interfaces between application functions and basic system functions. The TargetLink AUTOSAR Module makes TargetLink’s modeling, simulation and code generation features available for designing Classic AUTOSAR software components (SWCs). Furthermore, TargetLink 5.0 supports select features of Adaptive AUTOSAR Release 19-03. AUTOSAR Adaptive Platform, also called Adaptive AUTOSAR, is a standard based on a service-oriented architecture that aims at on-demand software updates and high-end functionalities.
FMI The Functional Mock-up Interface (FMI) is an open standard for the tool-independent exchange and integration of plant models that are provided by various tool vendors. Functional Mockup Units (FMUs) can be exported from TargetLink to simulation environments that support FMI.
ASAM MCD-2 MC (ASAP2) Internal ECU variables in measurement and calibration can be defined in the description format ASAM MCD-2 MC. Because a code generator also needs to have close links with calibration systems, TargetLink can export calibration data as ASAM-MCD 2MC file for calibration tools.

 

关于AUTOSAR的更多信息

关于TargetLink的更多信息

推动创新进程。我们始终在技术开发的最前沿。

欢迎订阅我们简讯,了解我们的专业技术以及产品。希望我们的成功案例能够对您有所帮助。快速了解仿真和验证的最新信息。欢迎订阅/管理dSPACE简讯和dSPACE航空速报。

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.