This tests the CAN interface between two LISA C027 MBED Boards. By connecting the two boards, pins 1,2,3 respectively on the CAN interface, and loading and executing this code on BOTH boards, CAN messages will be received, and printed, on the PC-USB console interface of both devices.

Dependencies:   C027-REVB UbloxUSBModem mbed

Fork of C027_ModemTransparentUSBCDC_revb by Stephen Dickey

Revision:
1:15b5edb4a91f
Parent:
0:92ab4f4846f8
Child:
2:c4ad86683060
--- a/main.cpp	Fri Dec 13 00:40:55 2013 +0000
+++ b/main.cpp	Fri Dec 13 23:37:54 2013 +0000
@@ -14,7 +14,11 @@
     // the instantiation of the type, calls C027::C027
     C027 c027;
     
-    c027.mdmPower(true);
+    c027.mdmPower(true,false);
+    
+    // enable the GPS, and connect it 
+    // to the m3.
+    c027.gpsPower(true, false);
 
 #if 0
     while(1) {
@@ -40,6 +44,8 @@
     Serial pc(USBTX, USBRX);
     pc.baud(MDMBAUD);
     
+    pc.printf( "M3->USB CDC connection ready\n");
+    
     while (1)
     {
         uint8_t buf[64];