2

我正在尝试获取用户从上次清除代码时经过的距离

“自代码清除以来的旅行距离”
http://en.wikipedia.org/wiki/OBD-II_PIDs

但我没有得到任何数据。我正在使用这个开源库。 https://github.com/pires/android-obd-reader 我正在用这个参数构造命令

public ObdKMCommand() {
    super("01 31");
}

我错过了什么?

4

1 回答 1

0

Try sending this kind of command to your obd device – 0131\r (i.e. MM PP\r format and don't forget to append \r at the end of your command). OBD device identifies the end of command request by \r. So I am getting proper response while sending this command pattern and receiving 2 bytes response as expected.

于 2014-01-28T11:12:00.033 回答