Step 4 - Connecting To The DATABUS
The last step that an application must perform, after loading the DLL and all of the functions, is to connect through the VDA to the databus and allow messages to be read. Below is a snippet of code connecting to the VDA Vendor's Device ID = 1 and the J1939 protocol using automatic baud rate detection: