DPA RP1210 Driver Sample Source Code
DPA RP1210 Sample Source Code
We developed sample source code for engineers that are new to RP1210 development. The sample source code and the compiled version of the code can be found at the link below. This code is easy to understand and is well commented. It is in one contiguous source file, and runs under a DOS command prompt. Ensure when running the program that your DOS prompt is set to 150 characters wide.DG recommends using our RP1210 drivers for all RP1210 supported protocols. However, for protocols not yet covered under RP1210, such as ISO9141 and ALDL, our native drivers provide easy access to them. Note that the native drivers examples do not apply to the DPA /I variant.
A zip file containing very good native driver examples follows after the RP 1210 Sample code.
It allows the user to connect to a DPA on either the J1708 or J1939 data bus and displays all bus traffic (both sent or received). It decodes one J1939
PGN into English text values (61444 - EEC1 - Electronic Engine Controller #1) and also decodes one J1587 PID into English text values (190 - Engine Speed). The program also sends a request for either the J1939 PGN 65260 (VIN) or J1587 PID 237 (VIN) every 15 seconds.
