List of Functions
- Updated2025-10-07
- 6 minute(s) read
The following table contains an alphabetical list of the Automotive Diagnostic Command Set API functions.
Functions for the Automotive Diagnostic Command Set for C
| Function | Purpose |
|---|---|
| ndClearDiagnosticInformation | Executes the ClearDiagnostic Information service. Clears selected Diagnostic Trouble Codes (DTCs). |
| ndCloseDiagnostic | Closes a diagnostic session. |
| ndControlDTCSetting | Executes the ControlDTCSetting service. Modifies the generation behavior of selected Diagnostic Trouble Codes (DTCs). |
| ndConvertFromPhys | Converts a physical data value into a binary representation using a type descriptor. |
| ndConvertToPhys | Converts a binary representation of a value into its physical value using a type descriptor. |
| ndCreateExtendedCANIds | Creates diagnostic CAN identifiers according to ISO 15765-2. |
| ndDiagFrameRecv | Receives a raw CAN frame on the diagnostic CAN ID to check for errors in the transport protocol implementation of an ECU. |
| ndDiagFrameSend | Sends a raw CAN frame on the diagnostic CAN ID to check for errors in the transport protocol implementation of an ECU. |
| ndDiagGetProperty | Gets a diagnostic global internal parameter. |
| ndDiagnosticService | Executes a generic diagnostic service. If a special service is not available through the KWP2000, UDS, or OBD service functions, you can build it using this function. |
| ndDiagSetProperty | Set a diagnostic global internal parameter. |
| ndDisableNormalMessageTransmission | Executes the DisableNormalMessage Transmission service. The ECU no longer transmits its regular communication messages (usually CAN messages). |
| ndDoIPActivateRouting | Defines the source and target address for a DoIP TCP/IP connection. |
| ndDoIPConnect | Creates a TCP/IP connection to a DoIP entity identified by its IP address. |
| ndDoIPConnectVersion | Creates a TCP/IP connection to a DoIP entity identified by its IP address. |
| ndDoIPDisconnect | Disconnects the TCP/IP connection to a DoIP entity. |
| ndDoIPEntityStatus | Gets status information from a DoIP entity. |
| ndDoIPGetDiagPowerMode | Gets information on the DoIP entity power state. |
| ndDoIPGetEntities | Returns a table of all DoIP entities (vehicles) on the local subnet, possibly restricted to EID or VIN. |
| ndDoIPGetEntitiesAllVersions | Returns a table of all DoIP entities (vehicles) on a specific subnet, possibly restricted to EID or VIN. |
| ndDoIPGetEntitiesEx | Returns a table of all DoIP entities (vehicles) on a specific subnet, possibly restricted to EID or VIN. |
| ndDoIPSendVehicleIdentReqEID | Sends a UDP request to all DoIP-capable vehicles with a certain EID (MAC address) in the local subnet to identify themselves. |
| ndDoIPSendVehicleIdentReqEIDAllVersions | Sends a UDP request to all DoIP-capable vehicles with a certain EID (MAC address) on the specified broadcast address to identify themselves. |
| ndDoIPSendVehicleIdentReqEIDEx | Sends a UDP request to all DoIP-capable vehicles with a certain EID (MAC address) on the specified broadcast address to identify themselves. |
| ndDoIPSendVehicleIdentRequest | Sends a UDP request to all DoIP-capable vehicles in the local subnet to identify themselves. |
| ndDoIPSendVehicleIdentRequestAllVersions | Sends a UDP request to all DoIP-capable vehicles on the specified broadcast address to identify themselves. |
| ndDoIPSendVehicleIdentRequestEx | Sends a UDP request to all DoIP-capable vehicles on the specified broadcast address to identify themselves. |
| ndDoIPSendVehicleIdentReqVIN | Sends a UDP request to all DoIP-capable vehicles with a certain VIN (Vehicle Identification Number) in the local subnet to identify themselves. |
| ndDoIPSendVehicleIdentReqVINAllVersions | Sends a UDP request to all DoIP-capable vehicles with a certain VIN (Vehicle Identification Number) on the specified broadcast address to identify themselves. |
| ndDoIPSendVehicleIdentReqVINEx | Sends a UDP request to all DoIP-capable vehicles with a certain VIN (Vehicle Identification Number) on the specified broadcast address to identify themselves. |
| ndDTCToString | Returns a string representation (such as P1234) for a 2-byte diagnostic trouble code (DTC). |
| ndECUReset | Executes the ECUReset service. Resets the ECU. |
| ndEnableNormalMessageTransmission | Executes the EnableNormalMessage Transmission service. The ECU starts transmitting its regular communication messages (usually CAN messages). |
| ndGetTimeStamp | Gets timestamp information about the first/last send/received frame of the ISO TP for CAN and LIN. |
| ndInputOutputControlByLocalIdentifier | Executes the InputOutputControlByLocalIdentifier service. Modifies the ECU I/O port behavior. |
| ndOBDClearEmissionRelatedDiagnosticInformation | Executes the OBD Clear Emission Related Diagnostic Information service. Clears emission-related diagnostic trouble codes (DTCs) in the ECU. |
| ndOBDOpenOnCANFD | Opens a diagnostic session on a CAN port for OBD-II. |
| ndOBDRequestControlOfOnBoardDevice | Executes the OBD Request Control Of On-Board Device service. Modifies ECU I/O port behavior. |
| ndOBDRequestCurrentPowertrainDiagnosticData | Executes the OBD Request Current Powertrain Diagnostic Data service. Reads an ECU data record. |
| ndOBDRequestEmissionRelatedDTCs | Executes the OBD Request Emission Related DTCs service. Reads all emission-related Diagnostic Trouble Codes (DTCs). |
| ndOBDRequestEmissionRelatedDTCsDuringCurrentDriveCycle | Executes the OBD Request Emission Related DTCs During Current Drive Cycle service. Reads the emission-related Diagnostic Trouble Codes (DTCs) that occurred during the current (or last completed) drive cycle. |
| ndOBDRequestOnBoardMonitoringTestResults | Executes the OBD Request On-Board Monitoring Test Results service. Reads an ECU test data record. |
| ndOBDRequestPermanentFaultCodes | Executes the OBD Request Permanent Fault Codes service. All permanent Diagnostic Trouble Codes (DTCs) are read. |
| ndOBDRequestPowertrainFreezeFrameData | Executes the OBD Request Powertrain Freeze Frame Data service. Reads an ECU data record stored while a diagnostic trouble code occurred. |
| ndOBDRequestVehicleInformation | Executes the OBD Request Vehicle Information service. Reads a set of information data from the ECU. |
| ndOpenDiagnosticOnCANFD | Opens a diagnostic session on a CAN port. Communication to the ECU is not yet started. |
| ndOpenDiagnosticOnIPStack | Opens a diagnostic session on an IP port. Communication to the ECU is not yet started. |
| ndOpenDiagnosticOnLIN | Opens a diagnostic session on a NI-XNET LIN port. Communication to the ECU is not yet started. |
| ndReadDataByLocalIdentifier | Executes the ReadDataByLocalIdentifier service. Reads an ECU data record. |
| ndReadDTCByStatus | Executes the ReadDiagnosticTrouble CodesByStatus service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndReadECUIdentification | Executes the ReadECUIdentification service. Returns ECU identification data from the ECU. |
| ndReadMemoryByAddress | Executes the ReadMemoryByAddress service. Reads data from the ECU memory. |
| ndReadStatusOfDTC | Executes the ReadStatusOfDiagnosticTroubleCodes service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndRequestRoutineResultsByLocalIdentifier | Executes the RequestRoutineResultsByLocalIdentifier service. Returns results from an ECU routine. |
| ndRequestSeed | Executes the SecurityAccess service to retrieve a seed from the ECU. |
| ndSendKey | Executes the SecurityAccess service to send a key to the ECU. |
| ndStartDiagnosticSession | Executes the StartDiagnosticSession service. The ECU is set up in a specific diagnostic mode. |
| ndStartPeriodicTesterPresent | Starts a background thread for the current diagnostic session that periodically transmits a TesterPresent message. |
| ndStartRoutineByLocalIdentifier | Executes the StartRoutineByLocalIdentifier service. Executes a routine on the ECU. |
| ndStatusToString | Returns a description for an error code. |
| ndStopDiagnosticSession | Executes the StopDiagnosticSession service. Returns the ECU to normal mode. |
| ndStopPeriodicTesterPresent | Terminates automatic transmission of a periodic TesterPresent message. |
| ndStopRoutineByLocalIdentifier | Executes the StopRoutineByLocalIdentifier service. Stops a routine on the ECU. |
| ndTesterPresent | Executes the TesterPresent service. Keeps the ECU in diagnostic mode. |
| ndUDS06ReadMemoryByAddress | Executes the UDS ReadMemoryByAddress service. Reads data from the ECU memory. |
| ndUDS06WriteMemoryByAddress | Executes the UDS WriteMemoryByAddress service. Writes data to the ECU memory. |
| ndUDSClearDiagnosticInformation | Executes the UDS ClearDiagnosticInformation service. Clears selected Diagnostic Trouble Codes (DTCs). |
| ndUDSCommunicationControl | Executes the UDS CommunicationControl service. Switches transmission and/or reception of the normal communication messages (usually CAN messages) on or off. |
| ndUDSControlDTCSetting | Executes the UDS ControlDTCSetting service. Modifies Diagnostic Trouble Code (DTC) behavior. |
| ndUDSDiagnosticSessionControl | Executes the UDS DiagnosticSessionControl service. The ECU is set up in a specific diagnostic mode. |
| ndUDSECUReset | Executes the UDS ECUReset service. Resets the ECU. |
| ndUDSInputOutputControlByIdentifier | Executes the UDS InputOutputControlByIdentifier service. Modifies ECU I/O port behavior. |
| ndUDSReadDataByIdentifier | Executes the UDS ReadDataByIdentifier service. Reads an ECU data record. |
| ndUDSReadMemoryByAddress | Executes the UDS ReadMemoryByAddress service. Reads data from the ECU memory. |
| ndUDSReportDTCBySeverityMaskRecord | Executes the ReportDTCBySeverityMaskRecord subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndUDSReportDTCByStatusMask | Executes the ReportDTCByStatusMask subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndUDSReportSeverityInformationOfDTC | Executes the ReportSeverityInformationOfDTC subfunction of the UDS ReadDiagnosticTroubleCodeInformation service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndUDSReportSupportedDTCs | Executes the ReportSupportedDTCs subfunction of the UDS ReadDiagnosticTrouble CodeInformation service. Reads all supported Diagnostic Trouble Codes (DTCs). |
| ndUDSRequestDownload | Initiates a download of data to the ECU. |
| ndUDSRequestSeed | Executes the UDS SecurityAccess service to retrieve a seed from the ECU. |
| ndUDSRequestTransferExit | Terminates a download/upload process. |
| ndUDSRequestUpload | Initiates an upload of data from the ECU. |
| ndUDSRoutineControl | Executes the UDS RoutineControl service. Executes a routine on the ECU. |
| ndUDSSendKey | Executes the UDS SecurityAccess service to send a key to the ECU. |
| ndUDSTesterPresent | Executes the UDS TesterPresent service. Keeps the ECU in diagnostic mode. |
| ndUDSTransferData | Transfers data to/from the ECU in a download/upload process. |
| ndUDSWriteDataByIdentifier | Executes the UDS WriteDataByIdentifier service. Writes a data record to the ECU. |
| ndUDSWriteMemoryByAddress | Executes the UDS WriteMemoryByAddress service. Writes data to the ECU memory. |
| ndVWTPConnect | Establishes a connection channel to an ECU using the VW TP 2.0. |
| ndVWTPConnectionTest | Maintains a connection channel to an ECU using the VW TP 2.0. |
| ndVWTPDisconnect | Terminates a connection channel to an ECU using the VW TP 2.0. |
| ndWriteDataByLocalIdentifier | Executes the WriteDataByLocal Identifier service. Writes a data record to the ECU. |
| ndWriteMemoryByAddress | Executes the WriteMemoryByAddress service. Writes data to the ECU memory. |
| ndWWHOBDClearEmissionRelatedDTCs | Executes the WWH-OBD ClearDiagnosticInformation service. Clears selected Diagnostic Trouble Codes (DTCs). |
| ndWWHOBDConvertDTCsToJ1939 | Converts DTCs to the J1939 DTC format. |
| ndWWHOBDConvertDTCsToJ2012 | Converts DTCs to the J2012 DTC format. |
| ndWWHOBDRequestDID | Executes the WWH-OBD ReadDataByIdentifier service. Reads a data record from the ECU. |
| ndWWHOBDRequestDTCExtendedDataRecord | Executes the WWH-OBD ReadDTCInformation service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndWWHOBDRequestEmissionRelatedDTCs | Executes the WWH-OBD ReadDTCInformation service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndWWHOBDRequestFreezeFrameInformation | Executes the WWH-OBD ReadDTCInformation service. Reads selected Diagnostic Trouble Codes (DTCs). |
| ndWWHOBDRequestRID | Executes the WWH-OBD RoutineControl service. Reads a data record from the ECU. |
| ndWWHOBDRequestSupportedDIDs | Executes the WWH-OBD ReadDataByIdentifier service to retrieve the valid DID values for this service. |
| ndWWHOBDRequestSupportedRIDs | Executes the WWH-OBD RoutineControl service to retrieve the valid RID values for this service. |