RTA Knowledge Base

Skip to end of banner
Go to start of banner

RTA-CAR 9.1.1 - 3. PNC Integration

Introduction

Scope

This application note describes how to integrate the RTA-SUM PNC module in your RTA-CAR project.

Prerequisites

  • The user should read the RTA-SUM_PNC_User_Guide.pdf available in the RTA-SUM package.
  • It is assumed you have followed the RTA-CAR 9.1.1 - 1. SUM Integration - Getting started to install the RTA-SUM plugin.
  • In order to successfully follow this guide, you shall have the RTA-CAR toolchain installed and you must be familiar with the AUTOSAR specifications, terminology and methodology. You also must be familiar with the GM specification and GM-SUM modules functionalities.

Create PNC module

  • From the 'ECU Navigator' view, expand the Bsw Modules, and add the 'PNC' module to the 'Other Modules', as shown below.

  • In "New AR Element Creation" popup (see next image), put the name of the module in the "PNC" field.
  • Select "Create New AR Package".
  • Put the file name, for example "SUM_PNC_EcucValues.arxml".

PNC Configuration

PNCGeneral

  • All the parameters under PNCGeneral will be set to its default values after PNC creation except for "ComM_Channel_Ref" which shall be added as seen in the two screen shots below.



PNCConfigSet/SUM_PNC_PARTIAL_NETWORK_PARAMETERs

  • All the parameters under "SUM_PNC_PARTIAL_NETWORK_PARAMETERs" will be set to its default values after PNC creation except for "ComM_PNC_Ref" and "Repeat_Message_Time_Ref" which shall be added as seen in the two screen shots below.
  • Add "ComM_PNC_Ref*", see the two screenshots below.


  • Add "Repeat_Message_Time_Ref*" which is a reference to the CanNm configuration, see the two screenshots below.

 →  


  • See GM Starter Kit RTA-CAR project for an example configuration of ComMPnc and CanNm.

Generate the PNC Module

The PNC module can then be generated by following the RTA-SUM Generation in 1. SUM Integration - Getting started.

Configuration of BSW

BswM Configurations

SUM_PNC_Init

After adding the PNC module it is now necessary to update the BswM configuration.

Firstly make sure to add the PNC module's header file in the BswMUserIncludeFiles container under BswMGeneral:


Add then the Action and ActionList Item necessary to manage the Init of the SOH as shown below.

E.g. to add a BswM action: right click > Create BswMAction, then right click on BswMAction > New Child > BswMAvailableActions. Similarly manage the ActionList



Other PNC related BswM Configurations

GM provides the relevant BswM Rules for PNCs in EcuC form, the following steps guides the integrator on adding such configurations manually if needed to get the ComM PNC Mode from ComM to a switch port provided to SUM PNC.

  • Add Mode request port

  • Add Mode Conditions

  • Add Logical Expression

  • Add BswMSwitchPort


  • Add Action

  • Add Action List


  • Add Rule


  • Add DataTypeMappingSets reference

  • Please check the BswM module in the RIP for more examples of the configurations needed by SUM PNC.


Dcm Configuration

Configure the Dcm with some defaults DIDs. The needed "DcmDspDatas" here are as follows:

  1. DID_F08B_LocalPartialNetworkActivationStatus_DataRecord.
  2. DID_F08C_CommunicationChannelStatusCAN_DataRecord.
  3. DID_F08D_RemotePartialNetworkActivationStatus_DataRecord.

You can find more details of the DIDs listed above in GM GB6001 document.

To configure the DID, the following containers must be added:

The detailed configuration is the following:

→  

Regenerate the BSW and you will find the expected interfaces generated.

ASW and System update

Now the BSW and the PNC configuration is completed. The next step is to update the ASW adding the PNC to the composition and creating the connections with the other SWCs (SUSD, Dcm, BswM).

For example, the PNC needs to be connected to the SUSD for the PermitExecution and the ShutdownPermission.

An example ASW named PNC_Test_App is present in the RIP. It showcases the use of Activation Sensor Interface (this is how an ASW would activate/deactivate a PN Locally through SUM PNC).

How to create the connections is out of the scope of this AN. Please consult the RTA-CAR Guides for more information.

Now you can:

  1. Update all the connections in the ASW composition
  2. Add the SWC to the ECU Mapping using the "SWC To ECU Mapping Editor"
  3. Map the new signals in the Signal Mapping Editor
  4. Regenerate the Ecu Extract
  5. Update the RTE Configuration mapping the new runnables to the Tasks

BSW/RTE/OS generation

The last steps are:

  1. Run the BSW Code Generator
  2. Regenerate the RTE
  3. Generate OS





  • No labels