CAN-Bus ECU simulator. Only part of the SAE J1979 are implemented. Uses CAN-Bus demo board as hardware platform. http://skpang.co.uk/catalog/canbus-ecu-simulator-with-lpc1768-module-p-1400.html Useful for testing diagnostic tools.

Dependencies:   TextLCD mbed

Fork of ecu_reader by Sukkin Pang

Revision:
6:41a4ad385daa
Parent:
5:46a6a3e36e05
--- a/ecu_reader.h	Tue Aug 28 13:16:46 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-#ifndef ECU_READER_H
-#define ECU_READER_H
-
-#define CANSPEED_125      125000        // CAN speed at 125 kbps
-#define CANSPEED_250      250000        // CAN speed at 250 kbps
-#define CANSPEED_500      500000        // CAN speed at 500 kbps
-
- /* Details from http://en.wikipedia.org/wiki/OBD-II_PIDs */
-#define ENGINE_COOLANT_TEMP 0x05
-#define ENGINE_RPM          0x0C
-#define VEHICLE_SPEED       0x0D
-#define MAF_SENSOR          0x10
-#define THROTTLE            0x11
-#define O2_VOLTAGE          0x14
-
-#define PID_REQUEST         0x7DF
-#define PID_REPLY           0x7E8
-
-namespace mbed { 
-
-class ecu_reader{
-
-public:
-
-    ecu_reader(int can_speed);
-
-    unsigned char request(unsigned char pid,  char *buffer);
-
-private: 
-
-    int i;
- 
-};
-
-
-
-
-
-    } 
-
-
-
-#endif
\ No newline at end of file