OBD II CAN object in obex by Chris Gadd. Anyone tried this?
T Chap
Posts: 4,223
I have several sensors I need to trace down and was going to buy a OBDii CAN bus scanner, but thought it might be a fun project to put together his design posted in obex by Chris Gadd. http://obex.parallax.com/object/690
Basically I want to read the error codes and hit reset.
Basically I want to read the error codes and hit reset.
Comments
I wrote a troubleshooter object that'll test the idle condition, look for traffic on the Rx pin, and if present measure the bit rate somewhat accurately. Then starts a reader and attempts to read a few messages just to see if that part works. Next it starts a writer to send a test message, which the reader should see being transmitted, and since the message is one that an OBD computer should recognize, waits for a response.
The reader seems to be having issues, in that sending an ack causes interference on the CANbus, and the reader uses an 8-message buffer, with any messages coming in while the buffer is full being dropped. I've commented out the ack instruction, and I'm trying to think of a solution for the buffer issue.
The OBD demo object still works fine with my Cobalt.
CANbus troubleshooter - Archive.zip