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

ODBII.h

Committer:
Nrode17
Date:
2016-01-27
Revision:
0:bb9076ae4c4a

File content as of revision 0:bb9076ae4c4a:

#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