Skip to main content

J1939GetName

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword J1939GetName( char[] busName, dword componentMask, char deviceName[] );
dword J1939GetName( long busHandle, dword componentMask, char deviceName[] );

Description

This function returns the name of a device that was logged onto the network with address. The function works with a global table that contains all node names and addresses logged onto the network. If no device is logged onto the network with address #10 then name=. In this version DEFAULT_VALUE is 0.

Parameters

  • busName: bus name or “default”
  • busHandle: bus handle, see J1939GetBus
  • componentMask: address of the node
  • deviceName: buffer to which the data is copied (size: 8 Byte).

Return Values

  • 0: ok
  • 3: unknown address

Example

char deviceName[8];
J1939GetName( "default", 0, deviceName );