Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to communicate with OBD II using bluetooth or wifi using iphone

I like to create a simple application for iOS, which read data from car through ODB II Wifi/bluetooth device and display in iPhone screen. But i don't know where to start. Please somebody help me to achieve below results.

I have both Bluetooth and wifi dongle.

Step 1 : Pair the bluetooth or Wifi dongle and iPhone.

Step 2 : Read the details through dongles

Please refer any tutorial or sample code which i can understand easily. I want to understand the these process in-depth and want to code by myself. So please help.

Thanks in advance.

like image 427
Dax Avatar asked Jul 14 '14 13:07

Dax


People also ask

Does OBD2 Bluetooth work with iPhone?

The ELM327 is a Bluetooth OBD-II Wireless Transceiver Dongle that you can plug into your car's OBD2 Port to read information from car's computer, engine and other stuff from vehicle. There is a lot of applications compatible with this device, for Windows, for Android, and some of then for IOS as well.


1 Answers

As David mentioned, on iOS you can use WiFi OBD interface only. Standard Bluetooth (not BTLE) will not work. Bluetooth devices should be approved by Apple to be able to transfer data to/from iOS. AFAIK there is no such a OBD's.

Probably your OBD dongle is based on ELM327 chip. Good starting point is this doc. Read it carefully. This is everything what you need. Interesting things starts at page 7.

On iOS you should open TCP connection with your OBD IP address(for example using NSInputStream, NSOutputStream), then configure OBD using AT commands. Rest is described in section "Talking to the Vehicle" (page 30) in ELM link. Enjoy reading :)

If you need more help- just ask.

like image 133
psci Avatar answered Sep 27 '22 02:09

psci