我们尝试将OBD-II I2C适配器与Golf V 1.4 TSI连接。适配器连接到esp8266。
链接
https://github.com/stanleyhuangyc/ArduinoOBD
http://freematics.com/pages/products/arduino-obd-adapter/
代码
#include <Wire.h>
#include <OBD.h>
COBDI2C obd;
void setup() {
obd.begin();
while (!obd.init());
}
void loop() {
int result;
if (obd.readPID(PID_RPM, result)) {
Serial.print(result);
}
}
输出
软WDT重置
ctx:cont
sp:3ffef4c0 end:3ffef760 offset:01b0
堆
3ffef670:3ffee60c 00000007 0000000c 40201423
3ffef680:00000001 00000004 3ffee5ed 40201369
3ffef690:00000062 feefeffe feefeffe 00000000
3ffef6a0:3ffee5b8 3ffee5d4 00000020 40202620
3ffef6b0:00000000 3ffe851c 00000000 40202654
3ffef6c0:3ffe851c 00000000 00000000 402030ee
3ffef6d0:00001388 0000010a 00000000 40203044
3ffef6e0:00110109 3ffe906c 000125cb 00000000
3ffef6f0:00000000 00001388 3ffee5b8 4020391e
3ffef700:3ffe8c00 3ffee650 3ffee5d4 3ffee734
3ffef710:3fffdad0 00000000 3ffee5b8 40202f6a
3ffef720:40201572 0000000a 0000000a 40202fea
3ffef730:3fffdad0 00000000 3ffee5b8 402023b9
3ffef740:feefeffe feefeffe 3ffee72c 40203660
3ffef750:feefeffe feefeffe 3ffee740 40100718
堆