An electronic control unit and a method of diagnosing an electronic control unit
on a vehicle are provided. The method includes the steps of storing in memory information
on variables to collect, selecting a trigger, monitoring for a predetermined event,
activating the trigger based on the detection of the event, collecting the variables
upon activation of the trigger, and storing the collected variables in memory.
The collected variable may be read via a pre-existing production serial link to
diagnose the electronic control unit.