Reading values ​​from a Bluetooth OBD II adapter in an Android application

Can someone give me an idea on how to read values ​​from a Bluetooth OBD II adapter in an Android app.

I want to start scanning bluetooth devices from my Android application, after a Bluetooth device is detected, how would I interact with it and get values ​​from it?

+7
source share
4 answers

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

add the necessary permissions, make the bt adapter, then find paired / unpaired devices

+4
source

I used the BluetoothChat application and was able to receive some basic messages, I do not proceed to register data. You can use this application to have some kind of instant messaging with your ECM.

  • What specific key are you using?
  • Do you know which protocols are used in your car?

Download a sample BluetoothChat application -

  • They already processed the connection details for you, you will need to change the UUID to connect to your device - 00001101-0000-1000-8000-00805F9B34FB
  • Read your specific key, some require that the returned character be sent to the end of each "\ r" command

This should get you started!

+1
source

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

0
source

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

The overall workflow of application functionality should look like this:

1) connect to the OBDII adapter via Bluetooth;

2) initialize the OBDII adapter using AT commands;

3) continuously receive data from the vehicle by issuing the appropriate PID codes.

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

0
source

All Articles