Skip to main content

Iso11783PDDUpdateDeviceDescription

Valid for: CANoe DE • CANoe4SW DE Note
The ISO11783 node layer allows the segmented transmission of device descriptions.

Function Syntax

long Iso11783PDDUpdateDeviceDescription( dword ecuHandle, char deviceCfgPath [] );

Description

The function updates the current device description object pool at runtime. Only the device object and objects of type DeviceValuePresentation of the specified file are transmitted.

Parameters

  • ecuHandle
    Handle of the ECU. The handle must be created with Iso11783CreateECU beforehand or ZERO for general parameters.
  • deviceCfgPath
    Filename of the device configuration file. The file must be located in the directory of the CANoe configuration.

Return Values

error code

Example

if (Iso11783PDDUpdateDeviceDescription( ecuHandle, "Sprayer01.XML" ) == 0) {
  // after  the device value presentation has changed to English
  // the designators are changed too
  Iso11783PDDChangeDesignator ( ecuHandle, 1, "Tank volume" );
  Iso11783PDDChangeDesignator ( ecuHandle, 2, "App rate per area" );
} else {
  write( "Error while update file" );
}