Skip to main content

coTfsLssSendConfigureNodeIdRequest (Level 2)

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

Function Syntax

long coTfsLssSendConfigureNodeIdRequest( dword NID, byte[] pErrorCode, byte[] pSpecificError );

Description

This function sends a configure LSS configure node-ID request and waits for the response.

Parameters

  • NID: node-ID of the device under test (DUT), value range 1..127 and 255
  • pErrorCode: error code
    • 0 - protocol successfully completed
    • 1 - node-ID out of range
    • 255 - implementation specific error occurred
  • pSpecificError: manufacturer specific error (used if error code = 255)

Return Values

Error code

Example

byte pErrorCode[1];
byte pSpecificError[1];

/* send LSS configure nodeID request and wait for response */

if (coTfsLssSendConfigureNodeIdRequest( 112 , pErrorCode, pSpecificError) == 1) {
    /* request sent and DUT replied with correct response. Response values can be found in pErrorCode, pSpecificError */
}