Skip to main content
Open topic with navigation

SmartCharging CAPL Functions

CAPL Functions » SmartCharging CAPL Functions Valid for: CANoe DE • CANoe4SW DE
  • SmartCharging
    • Only available with Option SmartCharging.
    • The available CAPL functions depend on the protocol(s) used and thus the underlying technology.
    • CCS (Communication Setup)
      • CCS is used for the following protocol: ISO15118-20.
      • Only available if the CCS-Binding is activated.
      • To use these CAPL-Functions, CCS-Binding needs to be activated in the Communication Setup window.
    • CHAdeMO (Communication Setup)
      • CHAdeMO is used for the following protocol: CHAdeMO.
      • To use these CAPL-Functions, CHAdeMO-Binding needs to be activated in the Communication Setup window.
    • SCC Modeling Libraries (Simulation Setup)
      • The modeling libraries are used for the following protocols: DIN70121, ISO 15118-2.
      • To use the CAPL functions, the modeling library SCC_Vehicle.vmodule and/or SCC_ChargePoint.vmodule must be included.
      • All response callbacks with ResponseCode parameter contain a Boolean parameter in their signatures that specifies the type of response code.
    • GB/T 27930 Modeling Libraries (Simulation Setup)
    • OCPP (Communication Setup)
      • OCPP is used for the following protocol: OCPP.
      • To use these CAPL-Functions, OCPP-Binding needs to be activated in the Communication Setup window.
Note: You cannot mix CCS Binding CAPL functions with SCC Modeling Library CAPL functions as they address different protocols.

CCS (Communication Setup)

Callback Functions

General Functions

CHAdeMO (Communication Setup)

General Functions

  • Shared Functions
    • StartSimulation: Starts the simulation of the DO.
    • ResetSimulation: Resets all internal data to their initial defaults (as at the start of measurement).
    • StartCyclicSending: Starts cyclic sending of all messages.
    • StopCyclicSending: Stops the sending of the cyclic messages. Can only be used if StartCyclicSending has been called before.
    • SetCyclicMessageDelay(uint8 milliseconds): Changes the message interval at which the messages are sent. Will be reset to default of 100[ms] using function ResetSimulation.
  • EV Functions
    • SetMaximumChargingTime(uint32 seconds): Overwrites the calculated charging time of the vehicle

Data Members

EV and EVSE contain data members that are either used by both sides or are only relevant for one side of the communication. They are used to pass internal states to the outside (consumed) or signals and measurement data to the inside (provided). Further information can be found on the page Distributed Objects.
  • Shared Usage
    • MeasVoltageCC1: consumed, double, —, Measured voltage on DP2.
    • MeasVoltageCC2: consumed, double, —, Measured voltage on DP3.
    • MeasVoltageCP: consumed, double, —, Measured voltage on Charge Sequence Signal1.
    • MeasVoltageCP2: consumed, double, —, Measured voltage on Charge Sequence Signal2.
    • MeasVoltageCP3: consumed, double, —, Measured voltage on Vehicle Charge Permission.
    • MeasVoltageCS: consumed, double, —, Measured voltage on Connector Proximity Detection.
    • SpecificationState: consumed, enum, State_A, The current state of the StateMachine. Possible values: State_A (0), State_B (1), State_C (2), State_D (3), State_E (4), State_F (5), State_G (6), State_H (7), State_I (8).
  • EV Specific
    • ID100: provided, struct, —, CAN message H’100 (to be) sent by the vehicle, see Message_ID100_Type for details.
    • ID101: provided, struct, —, CAN message H’101 (to be) sent by the vehicle, see Message_ID101_Type for details.
    • ID102: provided, struct, —, CAN message H’102 (to be) sent by the vehicle, see Message_ID102_Type for details.
    • ID108: consumed, struct, —, CAN message H’108 (to be) received from the charger, see Message_ID108_Type for details.
    • ID109: consumed, struct, —, CAN message H’109 (to be) received from the charger, see Message_ID109_Type for details.
  • EVSE Specific
    • S0: consumed, enum, open, Switch for U1. Possible values: open (0), close (1)
    • S1: consumed, enum, open, Switch for R1‘. Possible values: open (0), close (1)
    • d1: consumed, enum, open, Switch for d1. Possible values: open (0), close (1)
    • d2: consumed, enum, open, Switch for d2. Possible values: open (0), close (1)
    • TargetOutputVoltage: consumed, double, —, Voltage to be output.
    • TargetOutputCurrent: consumed, double, —, Current to be output.
    • Vdc: consumed, double, —, Measured voltage in the output circuit.
    • Idc: consumed, double, —, Measured current in the output circuit.
    • ExpectedWeldingDetectionState: consumed, enum, notExpected, Defines whether the WeldingDetection can be started. ‘Welding check status’ H’109.5.7 should be used to signal end of welding detection. Possible values: notExpected (0), expected (1)
SmartChargingMessage IDs