Skip to main content

coTfsNmtResetCommunication (Level 2)

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE

Function Syntax

long coTfsNmtResetCommunication( void );
long coTfsNmtResetCommunication( dword broadcastFlag);

Description

This call triggers a NMT message that resets the communication functionality of the DUT (Device Under Test). After sending out the message, the boot-up message of the DUT is awaited. The reliable wait time corresponds to the general wait time, which is set with coTfsSetTimeoutValue. Note: If the heartbeat producer is already active, it will be restored at the end.

Parameters

  • broadcastFlag: !=0: NMT message is sent to all nodes (broadcast)

Return Values

Error code

Example

if ( coTfsNmtResetCommunication() != 1) {
  write("reset communication failed");
}