SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By sti robot
#172206
Did the recording tonight and I learned several things:

-The 4th position on the 4: line is the oil temp
-There are timing issues/parsing issues with repeatedly resetting the header to default and back to 7E0. An OK gets returned from the chip which includes an \0 or \n character which causes the "dumb" parsing of the return to end reading the buffer. I'll have to make the parsing more intelligent. Skip any OK's and look specifically at the 4: line and not at a specific spacing in the return.
By sti robot
#172537
So, another question/conundrum.

If I want standard obd ii protocol pid stuff i'm good. If I want to get a can pid i'm good. But what if I want to get a CAN pid and then switch back to getting an obd ii pid.

AT D
AT E0

Will switch back to obd ii but it cuts off the CAN messages. I want to datalog some stuff from both protocols and quickly switch between. How do I do this?
By skimask
#172538
Figure out what the "standard" header is before you set it, set it back to that, read the standard stuff, set the header to the "non-standard" header, read the non-standard stuff, wash, lather, rinse, repeat...