Not sure if this is where i should post this.. but i took it upon myself to try to talk to my ECU with a FTDI interface and a VCP driver... cept idk how to get the ECU to wake up!
i tried a multitude of things, the last being setting my baud rate to 360 (9 bits at 360 baud = .25ms?) and send 0x00 tryin to pulse the kline, then i wait .25ms change the baud to 10400 and send 0x81 0x11 0x81 but i get no reply at all.
this is my wakeup function
txtBaud.Text = "360";
serialPort1.BaudRate = int.Parse(txtBaud.Text);
writeToECU(new byte[] { 0x00 });
txtBaud.Text = "10400";
serialPort1.BaudRate = int.Parse(txtBaud.Text);
System.Threading.Thread.Sleep(25);
writeToECU(new byte[] { 0x81,0x11,0x81 });
for a while i was just getting an "echo" of what i was sending, but klines are bidirectional (or so ive read) so i wrote a function
public void writeToECU(byte[] ba)
{
foreach(byte b in ba)
{
serialPort1.Write(new byte[] { b }, 0, 1);
serialPort1.ReadByte();
}
}
to read each byte as its "echoed" back
am i doin sumthing wrong?
i dont have much experience in anything but programing but im curious and bored ha
is it because im not waiting the .25 seconds im pulsing the kline?
im running out of ideas ;(