STM32F411 Example of MTSAS Cell Connection Using T-Mobile Data SIM

Dependencies:   mbed

Revision:
14:025cccfe4215
Parent:
13:699045e9cce9
--- a/main.cpp	Wed Aug 13 14:28:07 2014 +0000
+++ b/main.cpp	Thu Sep 18 21:37:20 2014 +0000
@@ -3,11 +3,11 @@
 
 int main(){
     //Modify to match your apn if you are using an HSPA radio with a SIM card
-    const char APN[] = "";
-    
+    const char APN[] = "epc.tmobile.com";
+    printf("Starting...\n");
     //Sets the log level to INFO, higher log levels produce more log output.
     //Possible levels: NONE, FATAL, ERROR, WARNING, INFO, DEBUG, TRACE
-    MTSLog::setLogLevel(MTSLog::INFO_LEVEL);
+    MTSLog::setLogLevel(MTSLog::TRACE_LEVEL);
     
     /** STMicro Nucelo F401RE
     * The supported jumper configurations of the MTSAS do not line up with
@@ -18,7 +18,7 @@
     * Uncomment the following line to use the STMicro Nuceleo F401RE
     */
     MTSSerialFlowControl* io = new MTSSerialFlowControl(D8, D2, D3, D6);
-    
+    printf("FlowControl...\n");
     /** Freescale KL46Z
     * To configure the serial pins for the Freescale KL46Z board, use MTSAS jumper 
     * configuration B. Uncomment the following line to use the Freescale KL46Z board
@@ -33,17 +33,17 @@
     
     //Sets the baud rate for communicating with the radio
     io->baud(115200);
-    
+    printf("Baud...\n");
     //Create radio object
     Cellular* radio = CellularFactory::create(io);
-    
+    printf("CellularFactory...\n");
     if (! radio) {
         logFatal("Failed to initialize radio");
         return 1;
     }
     radio->configureSignals(D4,D7,RESET);
     Transport::setTransport(radio);
-    
+        printf("setTransport...\n");
     //Set radio APN
     for (int i = 0; i < 10; i++) {
         if (i >= 10) {