Matt,
I believe that is about all you should have to do to get at least the basic On Board Diagnostic II codes. It sounds like you confirmed that your specific year and model of vehicle does support the CAN version of OBDII, as there are almost half a dozen different hardware layers (pulse code modulaiton and various other serial like schemes...) I am interested in doing this as well, but haven't gotten all the parts together yet. Here is my current plan:
- Buy a Male J1962 connector (i've seen various ones for $5 - $20 or so online, some with db9 ends some with just pigtails...) (Here is one random example...)
- Buy a CAN transciever (TI's SN65HVD232 is used on Stern Technologies AVR OBDII Schematic, the MCP2551 is used on page 58 of the ELM327 schematic and on the IAR LPC1768 Eval Board Schematic)
- Hook in CANH to J1962 pin 6, hook CANL to j1962 pin 14, hook the MBED's ground to pin J1962 pin 5 (signal ground)
- Maybe throw in a 120 ohm resistor between CANH and CANL right near the transciever...
- I'd write a quick test program to use the existing CAN in/out to continually read and echo any bytes over the usb serial debugging port...
- After I get some basic connectivity, I would read up on ODBII codes and perhaps do some query/report type stuff, or perhaps parse the codes on the MBED and log pre-cooked data etc...
For data logging, if you want to do just a couple megabytes or less, you can use the existing FLASH, otherwise I'd consider hooking up an external SPI based SD card or the like as described in some of the cookbooks... I wrote a small app to log temperature data to the local flash, it could be modified to save the incoming CAN messages for future offline parsing etc...
Let me know your thoughts, as I'd like to try it out too... Another option would be to buy an ODBII device that implements all of the various protocols and outputs RS-232 and just hook that up to the MBED, but that wouldn't be quite as fun would it?!
Thanks!
-John
I was just curious if anyone had any experience connecting their MBED to the CANBus of a vehicle? I would really like to do just that. I currently have two vehicles that each support CAN, and I would like to connect to them to log information from the ECU. I have looked at the CANBus page here on the site and it appears that I just have to connect my mbed and CAN transeiver up to the OBD port and start listening/talking. Anyone know if this will not work, or have any other advice/pointers?
Thanks,
Matthew