Code to talk to ODBII bluetooth module based on ELM327 chip.
I used a RN42 on SPP profile + a FTDI board to get starting on this project since I did not know much about ODB, ODB protocol, etc. This allowed me to simulate the ODB connector without having to experiment on the real thing (since I did not want to have my car running idle for an extended period of time)
References:
- ELM327 datasheet / ELMElectronics (R)
- Sparkfun ODB Hookup guide
- Sparkfun RN-42 based module
- An Introduction to Bluetooth Programming
- How to enable bluetooth on boot
- Edison Bluetooth guide, discussion