Skip to main content
Open topic with navigation

SCC_MessageTxInd

CAPL Functions » Smart Charging » SCC Modeling Libraries (Simulation Setup) » Shared Callback Functions » SCC_MessageTxInd Valid for: CANoe DE • CANoe4SW DE

Notes

  • It is not allowed to call SCC_SendPreparedMessage() from within this callback. An attempt to do so will cause SCC_SendPreparedMessage() to return false and a warning will be output to the Write window.
  • If you want to send a prepared message upon reception of this callback please use a timer to defer the call. Please also be aware to avoid any recursions.

Function Syntax

void SCC_MessageTxInd ( byte SessionOrRunID[], dword MessageID, long Error )

Description

The callback is called each time a Vehicle2Grid, SECC Discovery or SLAC message is sent by the simulation DLL.

Parameters

  • SessionOrRunID: 8-byte long SessionID (V2G) or RunID (SLAC) of the connection, range: 0 – 0xFF FF FF FF FF FF FF FF.
  • MessageID: Type of sent message:
    • For SLAC messages, MMType (2 byte) according to specification.
    • For V2G messages see help page MessageID.
  • Error:
    • 0 if the sending was successful.
    • 0 if the send call failed (sending may fail due to socket errors or the absence of a receiver which sends ACK packages).

Return Values

Example