Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading the values from OBD II Bluetooth adapter in the android application

Can anyone give me an idea on how to read the values from the OBD II Bluetooth adapter in an android application.

I want to start with scanning for the bluetooth devices from my android application, then after bluetooth device is found, how would I interact with it and get the values from it?

like image 375
Nandagopal T Avatar asked Dec 03 '11 09:12

Nandagopal T


People also ask

How do I use Bluetooth OBD2 Reader?

The engine will be off, but this provides power to your dash lights, radio and also the OBD II diagnostic port. From your Android Smartphone or tablet, go to your SETTINGS, then WIRELESS & NETWORKS, then BLUETOOTH SETTINGS. Turn on Bluetooth, scan for the nearby devices and pair your phone with the scanner.

Can I use my phone as an OBD2 Scanner?

Android phones and tablets can also be used for both Bluetooth and Wi Fi OBD2 scanners. We all know that Apple and iOS can only be used on Wi Fi wireless OBD2 scanners, and will not work using Bluetooth.


2 Answers

You should start by reading this http://developer.android.com/guide/topics/wireless/bluetooth.html it contains step by step procedure .

add required permissions, make a bt adapter, then find paired/unpaired devices

like image 164
Sunny Kumar Aditya Avatar answered Oct 05 '22 06:10

Sunny Kumar Aditya


I used the BluetoothChat Application and was able to get some basic communications, I am not moving into data logging. You can use this application to have a sort of instant messenger conversation with your ECM.

  1. What particular dongle are you using?
  2. Do you know what protocols are in use within your vehicle?

Download the BluetoothChat sample application -

  1. They will have already handled the intricacies of the connection for you, you will have to change the UUID in order to connect with your device - 00001101-0000-1000-8000-00805F9B34FB
  2. Read up on your particular dongle, some require the return character to be sentat the end of every command "\r"

This should get you started!

like image 20
Bubo Avatar answered Oct 05 '22 06:10

Bubo