Create and Convert Legacy Diagnostic Data Definition File

Methods to Specify Legacy Diagnostic Data Definition File

The Legacy Diagnostic Data Definition File can be defined either directly in VS Code or through terminal commands, providing flexibility for both graphical and command-line workflows.

Via Visual Studio Code

  1. To create a JSON-based legacy diagnostic data definition file, go to File  New File and select New DaVinci-AUTOSAR-JSON File…​ or right-click in the Explorer and choose DaVinci  New DaVinci-AUTOSAR-JSON File…​ from the context menu. Select diagnostic-data-management to edit legacy diagnostic data definition file.

  2. Choose either the detailed or compact legacy diagnostic data definition file template to begin designing.

    • Both templates support defining the basic diagnostic data structure, including BSW package reference, .cdd-file reference, ECU and variant information.

    • The detailed template additionally supports importing DIDs and RIDs as single signals, legacy diagnostic import options and applying diagnostic description patch file.

  3. The legacy diagnostic data definition file will be created in your folder as compact or detailed .ddm.json and will appear in the Explorer.

  4. This file is automatically associated with the appropriate JSON schema, enabling editing with autocomplition.

To preview the ARXML content of the JSON file, click on ARXML Preview in the file’s title menu.

With Terminal Commands

  1. Navigate to the installation path of DaVinci-AUTOSAR-JSON and execute export in ddm domain to get an Legacy Diagnostic Data Definition File and select compact or detailed template.

    • Both templates support defining the basic diagnostic data structure, including BSW package reference, .cdd-file reference, ECU and variant information.

    • The detailed template additionally supports importing DIDs and RIDs as single signals, legacy diagnostic import options and applying diagnostic description patch file.

      $ dvarjson ddm export -s -e compact
  2. The legacy diagnostic data definition file will be created as compact or detailed .evs.json.

Conversion Methods of Legacy Diagnsotic Data Definition File in ARXML

The Legacy Diagnsotic Data Definition File can now not only be specified but also converted either in VS Code or via CLI commands.

Via Visual Studio Code

  1. To generate an ARXML file from a legacy diagnostic data definition file, select the file in the Explorer and choose DaVinci  Convert to ARXML from the context menu.

  2. You will be prompted to choose a destination path and specify a file name for the converted ARXML file.

  3. After you confirm the destination path and file name, the ARXML variant definition or legacy diagnostic data definition file will be generated.

With Terminal Commands

  1. Navigate to the installation path of DaVinci-AUTOSAR-JSON and execute convert to get an ARXML Legacy Diagnostic Data Extract.

    $ dvarjson ddm convert -i <compact.ddm.json>