Skip to main content

DoIP_SendPowerModeInformationRequest

Valid for: CANoe DE Note
The following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

Function Syntax

void DoIP_SendPowerModeInformationRequest();
void DoIP_SendPowerModeInformationRequest(char IPaddress[]);

Description

Sends power mode information request as limited broadcast or to the given address.

Parameters

  • IPaddress: Address to send to, i.e. not a limited broadcast. May be a directed broadcast address.

Return Values

Example

void _DoIP_PowerModeInformationResponse( char IPaddress[], BYTE value)
{
  write( "DoIP_PowerModeInformationResponse from '%s': %d", IPaddress, value);
  testSupplyTextEvent( cTE_PowerModeRespInd);
}
// Send a power mode information request and wait for the first response
Testcase TC_PowerMode()
{
  DoIP_SendPowerModeInformationRequest();
  testWaitForTextEvent( cTE_PowerModeRespInd, 500);
}
_DoIP_PowerModeInformationResponse