View Single Post
Old 09-17-2008, 04:24 PM   #211 (permalink)
Magister
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 212

Titine - '13 Hyundai Sonata Hybrid
Thanks: 3
Thanked 10 Times in 8 Posts
Instead of using SerialWrite() you can use elm_write("01C1\r") or SerialPrint("01C1\r"), you have to end your string by \r for the ELM to "execute" the string. Also you have to read the serial port after each write to check the result
A lot of PIDs return "encoded" values like RPM which is multiplied by 4, I used public knowledge found in wikipedia to know what to do for each PIDs
OBD-II PIDs - Wikipedia, the free encyclopedia

EDIT: I am using a Freeduino, my code takes about 12K for the moment.

__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote