Reading the values from OBD II Bluetooth adapter in the android application
Asked Answered
C

4

8

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?

Carney answered 3/12, 2011 at 9:14 Comment(0)
U
4

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

Upali answered 3/12, 2011 at 13:24 Comment(4)
Hi Aditi, Thanks for your response.Yeah, I started with this one ... ThanksCarney
Glad to know it helped and its AdityaUpali
Sorry Adithya..for misspelling.. Going through the links. I hope i can implement it.. Thanks for your help..Carney
This is new working URL developer.android.com/guide/topics/connectivity/bluetooth.htmlTaliesin
F
1

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!

Franek answered 17/8, 2012 at 19:35 Comment(0)
M
0

Once you have made the Bluetooth connection using the android bluetooth api, use the transport to send and receive data via the Bluetooth channel.

Mays answered 1/4, 2012 at 19:13 Comment(0)
T
0

This is new developer resource document: https://developer.android.com/guide/topics/connectivity/bluetooth.html

The general workflow of the application functionality should go like this:

1) connect to the OBDII adapter through Bluetooth;

2) initialize OBDII adapter with AT commands;

3) continuously get data from the vehicle through issuing the corresponding PID codes.

This article also may be helpful. http://blog.lemberg.co.uk/how-guide-obdii-reader-app-development

Taliesin answered 7/7, 2016 at 13:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.