Quantex GmbH
DE RU EN EL
Η περιοχή σας: Ευρώπη

PassThru ReadVersion Чтение информации о dll и адаптере

Description

Функция выдаёт информацию о версии dll, версии стандарта J2534 и версии программы в адаптере.

long PassThruReadVersion(unsigned long DeviceID, char* pFirmwareVersion, char* pDllVersion, char* pApiVersion)

Options

Returned error codes

Definition Description
STATUS_NOERROR Function completed successfully
ERR_DEVICE_NOT_CONNECTED No connection to adapter. Possible reasons: The adapter is turned off, there is no network, or the IP address is not set correctly.
ERR_INVALID_DEVICE_ID Set a non-existent adapter ID DeviceID
ERR_NULL_PARAMETER One of the pointers is NULL

Example

#include "j2534_lib.hpp"

unsigned long DeviceID;
long Ret;

char[80] pFirmwareVersion;
char[80] pDllVersion;
char[80] pApiVersion;

Ret = PassThruReadVersion(DeviceID, pFirmwareVersion, pDllVersion, pApiVersion);
if (Ret != STATUS_NOERROR)
{	// Error handling
}