ndCreateExtendedCANIds
- Updated2025-10-07
- 1 minute(s) read
Purpose
Creates diagnostic CAN identifiers according to ISO 15765-2.
Format
void ndCreateExtendedCANIds (
unsigned short addressingMode,
unsigned short transportProtocol,
unsigned char sourceAddress,
unsigned char targetAddress,
unsigned long *transmitID,
unsigned long *receiveID);
Input
addressingMode
Specifies whether the ECU is physically or functionally addressed:
0: physical addressing
1: functional addressing
transportProtocol
Specifies whether normal or mixed mode addressing is used. The following values are valid:
| 0 | ISO TP—Normal Mode. The ISO TP as specified in ISO 15765-2 is used; all eight data bytes of the CAN messages are used for data transfer. |
| 1 | ISO TP—Mixed Mode. The ISO TP as specified in ISO 15765-2 is used; the first data byte is used as address extension. |
sourceAddress
The host (diagnostic tester) logical address.
targetAddress
The ECU logical address. Output
transmitID
The generated CAN identifier for sending diagnostic request messages from the host to the ECU.
receiveID
The generated CAN identifier for sending diagnostic response messages from the ECU to the host. Description
ISO 15765-2 specifies a method for creating (extended/29 bit) CAN identifiers for diagnostic applications given the addressing mode (physical/functional), the transport protocol (normal/mixed), and the 8-bit source and target addresses. This function implements the construction of these CAN identifiers. You can use them directly in the ndOpenDiagnosticOnCANFD function.