通过蓝牙,Android开发连接到ELM327的问题 [英] Problems Connecting to ELM327 Via Bluetooth, Android Development

查看:129
本文介绍了通过蓝牙,Android开发连接到ELM327的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个应用程序,以便通过蓝牙从OBDII端口读取数据。现在我收到了我的ELM327蓝牙加密狗,我试图使用开发人员网页上的示例BluetoothChat应用程序进行简单连接。我打算将其用作我的连接代码的模板。我无法使用此应用程序进行连接,但我可以使用ELM327应用程序以及Torque。有没有人对连接ELM327有任何建议或经验?

I am trying to write an App in order to read data from an OBDII port via bluetooth. Now that I have recieved my ELM327 bluetooth dongle I am trying to simply connect using the example BluetoothChat application from the developers webpage. I plan on using this as a template for my connection code. I cannot connect using this application, but I can with the ELM327 app as well as Torque. Does anyone have any suggestions or experience with connecting to the ELM327?

推荐答案

嗨!我正在开发一个类似于你描述的项目,我必须通过蓝牙ELM327连接。你取得了一些成功吗?
Hi! I'm working on a project similar to the one you described and I have to connect to via Bluetooth ELM327. You had some success with that?


我正在使用同一个项目并成功完成,但我花了很多时间探索与Head Unit和Mobile的OBD-2连接相关的事情。好。这就是为什么我用一个样本来创建一个带有样本的库,它从O​​BD-2中读取标准PID,如速度,转速,maf,歧管进气压力,歧管进气温度等,并且基于这些值,我们也计算了以下参数。 br $>


行走距离

空闲时间

行车时间

一次行程最高车速

最高转速

空转耗油量

驾驶燃油消耗

即时燃油消耗

快速加速时间(速度增加的次数非常快)

快速宣告时间(使用多少次紧急制动)



你可以在下面的库中找到样本应用程序:

https://github.com/md-sohrab-alam/android-obd-reader
I was working with same project and completed successfully, but I spend a lots of time for exploring thing related to OBD-2 connectivity with Head Unit and Mobile as well. That's why I made a library with sample for the same that t reads standard PIDs from OBD-2, like speed, rpm, maf, manifold intake pressure, manifold intake temperature etc, and based on these values we calculate following parameter as well.

Distance Traveled
Idle Time
Driving Time
Max Speed in one Trip
Max RPM
Idling Fuel Consumtion
Driving Fuel Consumtion
Instant Fuel Consumtion
Rapid Acceleration Times (How many times speed increases very fast)
Rapid Declaration Times (How many time emergency brake is used)

you can refer below library with sample app:
https://github.com/md-sohrab-alam/android-obd-reader


ELM327是标准OBD-II工具,您可能需要进行一些修改工作
ELM327 is a standard OBD-II tool, you may properly need some modifications work


这篇关于通过蓝牙,Android开发连接到ELM327的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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