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

I like to create a simple iOS application that reads data from a car through a WDi / Bluetooth Bluetooth ODB II device and displays it on the iPhone. But I don’t know where to start. Please help me achieve the results below.

I have bluetooth and wifi dongle.

Step 1: Connect the Bluetooth or Wifi dongle and iPhone.

Step 2: Read the details through the keys

Please refer to any tutorial or sample code that I can easily understand. I want to understand this process in depth and I want to write the code myself. So please help.

Thanks in advance.

+7
ios iphone bluetooth wifi obd-ii
source share
1 answer

As David noted, on iOS you can only use the WiFi OBD interface. Standard Bluetooth (not BTLE) will not work. Bluetooth devices must be Apple approved in order to be able to transfer data to iOS. AFAIK there is no such database.

Your OBD key is probably based on the ELM327 chip. A good starting point is this document . Read carefully. That is all you need. Interesting things start on page 7.

On iOS, you must open a TCP connection with your OBD IP address (for example, using NSInputStream , NSOutputStream ), and then configure the OBD using AT commands. The rest is described in the section “Talking with the car” (page 30) in the ELM link. Enjoy reading :)

If you need more help, just ask.

+10
source share

All Articles