For RevB MBED Hardware, with the new boot sequence. 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-REVB UbloxUSBModem mbed
Diff: main.cpp
- Revision:
- 6:2d7edb824271
- Parent:
- 4:34eb741c5ed5
diff -r 519e5d6f56b2 -r 2d7edb824271 main.cpp --- a/main.cpp Sun Dec 15 22:31:37 2013 +0000 +++ b/main.cpp Sun Dec 15 22:40:24 2013 +0000 @@ -33,14 +33,14 @@ } #endif - // open the mdm serial port + // open the mdm USB port WANDongle mdmDongle; 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)); - // open the PC serial port and (use the same baudrate) + // open the PC serial port. Serial pc(USBTX, USBRX); pc.baud(MDMBAUD);