Skip to main content
Open topic with navigation

SCC_SetAppProtocolData

CAPL Functions » Smart Charging » SCC Modeling Libraries (Simulation Setup) » V2G Simulation Data » EV Functions » SCC_SetAppProtocolData Valid for:  CANoe DE  •  CANoe4SW DE

Function Syntax

long SCC_SetAppProtocolData(long ProtocolIndex, long Index, long Value);

Description

Overwrite the fields VersionNumberMajor, VersionNumberMinor, SchemaID or Priority after a SupportedAppProtocolReq message has been created using SCC_CreateSupportedAppProtocolReq.

Parameters

  • ProtocolIndex: The index of the AppProtocol entry to be modified, starting at 0 (zero). An error will be returned if the index is invalid.
  • Index: The index of the field in the selected AppProtocol. The following indices are defined:
    • 1: VersionNumberMajor
    • 2: VersionNumberMinor
    • 3: SchemaID
    • 4: Priority
    • Any other index will cause an error to be returned.
  • Value: The new value for the selected field.

Return Values

  • 0: error
  • 1: success

Example

// create a SupportedAppProtocolReq message using test configuration with ID="2"
SCC_CreateSupportedAppProtocolReq(2);
// set the VersonNumberMinor of the first AppProtocol element to 1
SCC_SetAppProtocolData(0, 2, 1);
// send the modified message
SCC_SendPreparedMessage();