Quantex GmbH
DE RU EN

HwTest Running the test with an external test plug

Description

The function starts a hardware test with an external test plug. This test checks the operation of CAN drivers, KL line drivers and the operation of the switch.

This test cannot be started when the adapter is connected to the car, as the test gives test signals to the output contacts of the OBDII connector. This can block the vehicle’s CAN bus.
long HwTest(unsigned long DeviceID)

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

Example

#include "j2534_lib.hpp"

unsigned long DeviceID;
unsigned long Ret;

Ret = HwTest(DeviceID);
if (Ret != STATUS_NOERROR)
{
// Error handling
    }