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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers globals.cpp Source File

globals.cpp

00001 #include "globals.h"
00002 
00003 
00004 
00005 DigitalOut led1 (LED1);
00006 DigitalOut led2 (LED2);
00007 DigitalOut led3 (LED3);
00008 DigitalOut led4 (LED4);
00009 
00010 // We use can on mbed pins 29(CAN_TXD) and 30(CAN_RXD).
00011 CAN can2(p30, p29);
00012 CANMessage can_MsgRx;
00013 Serial pc(USBTX, USBRX);