I have this C# code that sends a "testerpresent" and waits for the answer, which may arrive or not.
Code: Select all
result = UDSApi.SvcTesterPresent_2013(
canport, config,
out uds_msg request);
if (UDSApi.StatusIsOk_2013(result))
result = UDSApi.WaitForService_2013(canport,
ref request, out response, out request_confirmation);
I would like to reduce the timeout and return after a much shorter interval - like 10ms.
I've tried setting parameters PCANTP_PARAMETER_TIMEOUT_AS, AR, BS, CR: nothing changes.
It must be possible to set the timeout! How to do that?
One more thing: the default timeout is 1000*1000 microseconds = 1 second; still the function WaitForService_2013() returns after 10 seconds. ??
Thanks and regards
fabio