Simple test for USSD message.
Dependencies: C027 UbloxUSBModem mbed
Fork of C027_USSDTest by
Revision 8:f1553dd1d597, committed 2014-02-24
- Comitter:
- nherriot
- Date:
- Mon Feb 24 15:20:26 2014 +0000
- Parent:
- 7:6047f1c64e8d
- Child:
- 9:116214697287
- Commit message:
- Simple test for USSD message.
Changed in this revision
--- a/C027.lib Wed Nov 06 10:48:12 2013 +0000 +++ b/C027.lib Mon Feb 24 15:20:26 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/ublox/code/C027/#bc9e2eb5daa8 +http://mbed.org/teams/ublox/code/C027/#37252d7bcd9e
--- a/UbloxUSBModem.lib Wed Nov 06 10:48:12 2013 +0000 +++ b/UbloxUSBModem.lib Mon Feb 24 15:20:26 2014 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/users/mbed_official/code/UbloxUSBModem/#6e9d98f8c237 +https://mbed.org/users/mbed_official/code/UbloxUSBModem/#3dd151cec6ec
--- 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); }
--- a/mbed.bld Wed Nov 06 10:48:12 2013 +0000 +++ b/mbed.bld Mon Feb 24 15:20:26 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file