Android的OBD-II如何清除距离(PID0131)? [英] Android OBD-II How to clear distance travelled (PID0131)?

查看:381
本文介绍了Android的OBD-II如何清除距离(PID0131)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个应用程序,我需要计算从A点来到B点(车程)的距离。

I working on an app that I need to calculate distance travelled from point A to point B (by car).

我问埃尔姆电子(芯片组制造商),他们说没有标准的OBD-II PID回从里程计里程数,虽然汽车制造商可能会提供一个PID。由于这种方式不是标准的话,我发现了另一种方式。

I asked Elm Electronics (chipset manufacturer) and they said there is no standard OBD-II PID to return mileage from odometer, although car manufacturers might provide a PID. Since this way is not standard then I found another way.

PID 0131 (行驶距离,因为codeS清除),将返回的东西我认为可能会有帮助。如果我能够在A点到清除它,并阅读其在B点的值,那么我做:)

PID 0131 (Distance traveled since codes cleared), is returning something that I think might be helpful. IF i'm able to clear it at point A and read its value at point B then I'm done :)

我想了很多猜测什么是codeS清除的意思,但我不知道这是什么意思?我的另外一个重要的问题,如何清除code或重置此PID?

I thought a lot to guess what does "codes cleared" mean but I couldn't realize what does it mean? and my another important question, how to clear code or reset this PID?

任何建议将AP preciated。谢谢你。

Any suggestion would be appreciated. Thanks.

我刚刚测试了两辆车。

I just tested on two Cars.


  1. 在奔驰轿车没有OBD-II命令的作品。我不能得到任何数据:(

  2. 我的女神车(本地马来西亚)正确的答复,但0x0131 PID甚至几合格后KMS总是返回7F01是16608KM。我试图通过发送04命令(如埃里克对他的回答提出的建议),但是,没有得到明确的:),我仍然有7F01为响应重新设置。

我的媒体库可以被任何人谁是从这里寻找OBD-II的lib

My Library can be used for anyone who is looking for OBD-II lib from here.

所以,我打算做的是,因为我能够获得速度(V),那么我就能够根据 D = V * T 配方。

So, What I plan to do is, since I'm able to get speed (v) then I'm able to calculate distance based on d = v * t formula.

推荐答案

埃尔姆电子是正确的。该复位麻烦codeS的解决方案是可能的,但也许不需要的解决办法,但。

Elm Electronics are right. The resetting trouble codes solution is a possible, but maybe unwanted workaround though.

模式04重设codeS。发送04将重置MIL(故障指示灯)和重置要重置的codeS。

Mode 04 is for resetting the codes. Sending 04 will reset the MIL (Malfunction Indicator Light) and reset the codes you want to reset.

在评论,克里斯建议使用值,比跟踪这个值自己。这样,你不需要误用模式04。
钍0131溢出值在65535公里。但是,当你把你的车进行维修,他们可以重新设置这个值,这取决于谁是ofcourse维护你的车。

In the comments, Chris suggested to use the value, and than keep track of this value yourself. That way you don't need to misuse the Mode 04. Th 0131 value overflows at 65535 km. But when you bring you car in for maintenance, they could reset this value, depending on who is maintaining your car ofcourse.

来源:模式04 - 维基百科

这篇关于Android的OBD-II如何清除距离(PID0131)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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