View Single Post
Old 07-18-2014, 03:00 AM   #64
robot
There are now 2 carseats!
 
Join Date: Nov 2012
Drives: 2013 DGM BRZ
Location: The Emerald City
Posts: 434
Thanks: 21
Thanked 166 Times in 75 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
I got oil temp working. It was a pain.

Code:
    Serial1.println("AT SH 7E0");
    getResponse();
    Serial1.println("2101");
    Serial.println("brz oil temp");
    //value = ( (getResponseCAN('4', 11) ) - 40) * 1.8 + 32; //29th byte - 40 (?)
    getResponse();
    //Serial.println(&rxData[109]);
    //Serial.println((float)strtol(&rxData[109],0,16));
    value = ((float)strtol(&rxData[109],0,16) - 40) * 1.8 + 32;
    Serial.println(value);
    //Serial1.println("AT D"); //these two lines make the next 2101 reading get cut off
    //Serial1.println("AT E0");
    //Serial1.flush();
    delay(40);
    Serial1.println("ATSP6");//doesn't work and is slow (probing for protocol takes work)
    //getResponse();
I can't seem to get coolant working. When I query the ECU for 0105 I get "?" and when I query the ECU for what PID's it supports I get not supported for 0105 and 0167. Am I doing something wrong or is one of these supported, because I know I can get coolant temps using torque on my phone.
robot is offline   Reply With Quote