Syntax#include "j2534_v0404.h"
long PassThruDisconnect(unsigned long ChannelID);
Description
Terminate an existing logical communication channel
between the User Application and the vehicle network
(via the PassThru device). Once disconnected the channel
identifier or handle is invalid. For the associated
network protocol this function will terminate the
transmitting of periodic messages and the filtering of
receive messages. The PassThru device periodic and
filter message tables will be cleared.
Parameters
- ChannelID
- Logical communication channel identifier
See Also
Example
unsigned long Flags = 0;
unsigned long ChannelID;
unsigned long DeviceID;
PassThruOpen(NULL, &DeviceID);
PassThruConnect(DeviceID, ISO15765, Flags, 500000, &ChannelID);
// Perform vehicle communication here
PassThruDisconnect(ChannelID);
PassThruClose(DeviceID);
|