View Single Post
Old 08-30-2009, 03:11 PM   #483 (permalink)
electromike
EcoModding Lurker
 
Join Date: Oct 2008
Location: nova scotia
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
Froggy:

I haven't looked closely at your init code, but if it is improved, we will set that aside until next check in because the iso 9141 and 14230 slow init should be the same and generate the same result on any car that is ISO. That would be needed for Demonhawk's Device to work.

What needs to be added to the code is new header infromation for the KWP 2000 protocol to respond properly. As it stands now, the header information being sent is indicating that 8 Bytes of data will be sent, when in reality their are only 2. This would be messing with the Car's ECU and generating some unexpected results.

modify the code as follows:


byte iso_write_data(byte *data, byte len)
{
byte i, n;
byte buf[20];

// ISO header
#ifdef ISO_9141
buf[0]=0x68;
buf[1]=0x6A; // 0x68 0x6A is an OBD-II request
buf[2]=0xF1; // our requester’s address (off-board tool)

#else //assume we are using 14230 protocol
buf[0]=0xc2; // Request of 2 bytes
buf[1]=0x33; // Target address
buf[2]=0xF1; // our requester’s address (off-board tool)
#endif




Lets get that new init code, and that change for the header byte to Demonhawk. It might be all that is needed for his thing to work! Great work Froggy.

Last edited by electromike; 08-30-2009 at 03:13 PM.. Reason: added encouragement. :)
  Reply With Quote