This example establishes a transparent link between the mbed USB CDC port and the modem (LISA) on the C027. You can use it to use the standard u-blox tools such as m-center or any terminal program. These tools can then connect to the serial port and talk directly to the modem. Baudrate should be set to 115200 baud and is fixed. m-center can be downloaded from u-blox website following this link: http://www.u-blox.com/en/evaluation-tools-a-software/u-center/m-center.html

Dependencies:   C027 UbloxUSBModem mbed

Fork of C027_ModemTransparentSerial by u-blox

Install mbed Windows Drivers

Make sure you installed the drivers on your windows PC to get the virtual serial port. A installation guideline and the drivers can be found in the following wiki page. /handbook/Windows-serial-configuration

Revision:
6:8d5bf8e37f18
Parent:
5:853bcd1ce32b
--- a/main.cpp	Wed Nov 06 10:48:49 2013 +0000
+++ b/main.cpp	Fri Dec 06 09:54:21 2013 +0000
@@ -8,11 +8,12 @@
 int main() 
 {
     C027 c027;
+    c027.mdmUsbEnable(true);
     c027.mdmPower(true);
         
     // open the mdm serial port
     WANDongle mdmDongle;
-    USBSerialStream mdmStream(mdmDongle.getSerial(0/* the CDC usually 0 or 1*/ ));
+    USBSerialStream mdmStream(mdmDongle.getSerial(1/* the CDC usually 0 or 1, LISA-C requires CDC1*/));
     USBHost* host = USBHost::getHostInst();
     mdmDongle.addInitializer(new UbloxCDMAModemInitializer(host));
     mdmDongle.addInitializer(new UbloxGSMModemInitializer(host));