Skip to main content
Open topic with navigation CAPL Functions » Smart Charging » SCC Modeling Libraries (Simulation Setup) » V2G Data Queries » EV Functions » SCC_GetServiceIds

SCC_GetServiceIds

Valid for: CANoe DE • CANoe4SW DE Note
  • This function can be called only within the assigned callback. The function is used to query the details of a request.
  • <InvalidValueSigned> and/or <InvalidValueUnsigned> can be defined in the XML configuration.

Function Syntax

long SCC_GetServiceIds(dword ChargeServiceIDs[], dword ServiceListIDs[], long& ChargeServiceIDsCount, long& ServiceListIDsCount);

Description

Returns the ServiceID from the ChargeService and the ServiceIDs from the ServiceList sent with the current ServiceDiscoveryRes on EVSE side. This function is meant to help with matching the SerivceIDs received from an EV against the information sent within a ServiceDiscoveryRes by the EVSE. Note: This function is only valid during a SCC_MessageTxInd() callback with MessageID = 8 (ServiceDiscoveryRes).

Parameters

  • ChargeServiceIDs: The destination array of at least size 1 to receive the ServiceID from the ChargeService.
  • ServiceListIDs: The destination array is large enough to receive the (maximum) number of expected ServiceIDs from the ServiceList as per your SCC_ChargePoint XML configuration file.
  • ChargeServiceIDsCount:
    • In: dimension of the destination array
    • Out: The number of charge services
  • ServiceListIDsCount:
    • In: dimension of the destination array
    • Out: The number of ServiceIDs returned in the ServiceListIDs array, may be 0 (zero) if no ServiceList is contained in the message.

Return Values

  • 0: error, the message was called in the wrong V2G context, i.e., not during a SCC_MessageTxInd() with message = ServiceDiscoveryRes.
  • 1: success
  • 2: success, but the specified array dimension was too short. Increase the arrays dimension to receive all data.

Example

SCC_MessageTxIndMessage ID