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

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Fri Dec 06 09:54:21 2013 +0000
Parent:
5:853bcd1ce32b
Commit message:
pulled in new library, LISA-C requires to use CDC1

Changed in this revision

C027.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C027.lib	Wed Nov 06 10:48:49 2013 +0000
+++ b/C027.lib	Fri Dec 06 09:54:21 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ublox/code/C027/#bc9e2eb5daa8
+http://mbed.org/teams/ublox/code/C027/#e30f90b5447e
--- 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));