如何使用蓝牙或WiFi使用iPhone与OBD II沟通 [英] How to communicate with OBD II using bluetooth or wifi using iphone

查看:1012
本文介绍了如何使用蓝牙或WiFi使用iPhone与OBD II沟通的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢制作iOS,通过在iPhone屏幕ODB II WIFI /蓝牙设备并读取显示从汽车数据的简单应用程序。但我不知道从哪里开始。请有人帮助我实现如下效果。

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.

我有蓝牙和WiFi适配器。

I have both Bluetooth and wifi dongle.

第1步:配对蓝牙无线或加密狗和iPhone

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

第二步:通过加密狗阅读详情

Step 2 : Read the details through dongles

请参阅任何教程或样本code,我可以很容易理解。我想了解的深入,这些过程和由我自己想code。所以,请大家帮忙。

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.

在此先感谢。

推荐答案

正如David所说,iOS上只能使用无线OBD接口。标准的蓝牙(未BTLE)将无法工作。蓝牙设备应该由苹果的批准才能够将数据从iOS版转移到/。据我所知,没有这样的OBD的。

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.

可能是你OBD适配器是基于ELM327芯片。良好的出发点是这个文档。仔细阅读。这就是你所需要的一切。有趣的事情开始于7页

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.

在iOS你应该打开您的OBD IP地址的TCP连接(例如,使用 NSInputStream NSOutputStream ),然后使用AT命令配置OBD。休息一节谈话的车辆,在ELM链接(第30页)中描述。享受阅读:)

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.

这篇关于如何使用蓝牙或WiFi使用iPhone与OBD II沟通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆