{"id":1298,"date":"2015-06-23T03:40:06","date_gmt":"2015-06-22T13:40:06","guid":{"rendered":"http:\/\/commons.pratt.edu\/open-source\/?p=719"},"modified":"2015-06-23T03:40:06","modified_gmt":"2015-06-22T13:40:06","slug":"android-obdii-tool","status":"publish","type":"post","link":"https:\/\/www.kornequipped.com\/blog\/?p=1298","title":{"rendered":"Android OBDII Tool"},"content":{"rendered":"\n<p>After playing with AI2 for a couple of days and making simple apps&nbsp; to test different features I wanted to try to make a useful tool. I decided on an OBDII scan tool for my Blazer. I was able to get a working prototype in just under one hour.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/android\/ai2-obdii\/Screenshot_3.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>I used a common ELM327 Bluetooth adapter I got for $12 a couple of years ago.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/android\/ai2-obdii\/elm.jpg\" alt=\"\" \/><\/figure>\n\n\n\n<p>Since it was rainy most of the weekend I used my ECU simulator for most of the design work.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/android\/ai2-obdii\/ecusim.jpg\" alt=\"\" \/><\/figure>\n\n\n\n<p>I started with a simple interface.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/android\/ai2-obdii\/Screenshot_1.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>I added a terminal screen for oddball queries.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/android\/ai2-obdii\/Screenshot_5.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>I use a drop down for direct addressing to each module to get error codes. No parsing or DTC lookups yet but I can read the codes from the raw data.<\/p>\n\n\n\n<p>I took it outside and tested it on my truck. Sure enough it showed an ABS code my Innova scanner doesn&#8217;t see.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/es.pratt.edu\/Commons\/Images\/android\/ai2-obdii\/Screenshot_7.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>the ABS module shows one code&nbsp; &#8220;42 21&#8221; which translates to a &#8220;C0221&#8221;. You just remove the 2 high bits and convert that using this lookup table&#8230;<\/p>\n\n\n\n<p><span style=\"font-family: Arial;font-size: xx-small\"><b><span style=\"font-family: Arial;font-size: small\">&#8216;A7 A6 First DTC character<br \/>\n&#8216;&#8211; &#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n&#8216; 0 0 P &#8211; Powertrain<br \/>\n&#8216; 0 1 C &#8211; Chassis<br \/>\n&#8216; 1 0 B &#8211; Body<br \/>\n&#8216; 1 1 U &#8211; Network<\/span><\/b><\/span><\/p>\n\n\n\n<p>The code says the right front wheel sensor is open. It&#8217;s not broken I just have it unplugged since I was working on the brakes. At least I know it works better than a commercial $50 Scanner does&#8230;..<\/p>\n\n\n\n<p>I have to refine it and add DTC parsing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After playing with AI2 for a couple of days and making simple apps&nbsp; to test different features I wanted to try to make a useful tool. I decided on an OBDII scan tool for my Blazer. I was able to get a working prototype in just under one hour. I used a common ELM327 Bluetooth [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7,17],"tags":[],"class_list":["post-1298","post","type-post","status-publish","format-standard","hentry","category-android","category-automotive","category-tools"],"_links":{"self":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1298"}],"version-history":[{"count":0,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1298\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kornequipped.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}