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

Files at this revision

API Documentation at this revision

Comitter:
dixter1
Date:
Fri Dec 13 23:37:54 2013 +0000
Parent:
0:92ab4f4846f8
Child:
2:c4ad86683060
Commit message:
Updated.

Changed in this revision

C027-REVB.lib Show annotated file Show diff for this revision Revisions of this file
C027.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C027-REVB.lib	Fri Dec 13 23:37:54 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dixter1/code/C027-REVB/#db7c445289f5
--- a/C027.lib	Fri Dec 13 00:40:55 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/dixter1/code/C027-REVB/#cd02fb66a5fc
--- 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];