Simple test for USSD message.

Dependencies:   C027 UbloxUSBModem mbed

Fork of C027_USSDTest by u-blox

Revision:
8:f1553dd1d597
Parent:
7:6047f1c64e8d
Child:
10:6379202ce3cb
--- a/main.cpp	Wed Nov 06 10:48:12 2013 +0000
+++ b/main.cpp	Mon Feb 24 15:20:26 2014 +0000
@@ -3,19 +3,27 @@
 #include "UbloxUSBGSMModem.h"
 #include "UbloxUSBCDMAModem.h"
 
-#define USSD_COMMAND "*#134#"
+#define USSD_COMMAND "*#100#"
 
 C027 c027;
 
 void test(void const*)
 {
+    printf("Starting USSD test on Ublox C027, first calling mdmPower for the modem \n");
     c027.mdmPower(true);
+    printf("Waiting for modem to settle after power on...\n");
+    wait(5000);
+    
+    printf("Creating modem object...\n");
     UbloxUSBGSMModem modem; // for LISA-C use the UbloxUSBCDMAModem instead
     char result[32];
-
+    printf("Waiting for modem to settle, just created the modem object.\n");
+    wait(5000);
+    
+    printf("....wait over!\n");
     printf("Sending %s on USSD channel\n", USSD_COMMAND);
-
     int ret = modem.sendUSSD(USSD_COMMAND, result, 32);
+    
     if(ret) {
         printf("Send USSD command returned %d\n", ret);
     }