This is Ben and I's final project for Embedded Systems. Our goal was to create a car diagnostic system that interfaces with the CAN bus in all US sold cars newer than 2008. We aimed to request data such as RPM, Vehicle speed, engine temp, etc and then display our findings. This software was succussful in communicating with the car and reading and writing, however it fails to accomplish it's task when dealing with certain makes of cars, specifically Honda. Included are various PID codes, functions, and files that interface with a car's CAN bus system.

Dependencies:   UniGraphic mbed

Revision:
0:bb9076ae4c4a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ODBII.h	Wed Jan 27 17:40:51 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef ODBII_H
+#define ODBII_H
+
+#include "mbed.h"
+//Can Speed
+#define CANSPEED_125      125000
+#define CANSPEED_250      250000
+#define CANSPEED_500      500000
+//These are used to define the different PID codes as well as other codes
+#define ENGINE_COOLANT_TEMP 0x05
+#define ENGINE_RPM          0x0C
+#define VEHICLE_SPEED       0x0D
+
+
+#define PID_REQUEST         0x7DF
+#define PID_REPLY           0x7E8
+//the two functions
+float request(char pid);
+void set_frequency(int amount);
+
+#endif
\ No newline at end of file