support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.

Dependents:   HTTPClient_Cellular_HelloWorld Cellular_HelloMQTT MbedSmartRestMain Car_Bon_car_module ... more

This library is intended to be used with u-blox products such as the C027 or a shield with u-blox cellular and GPS modules like the cellular and positioning shield from Embedded Artist.

For 2G/GSM and 3G/UMTS you need to:

  • have a SIM card and know its PIN number
  • need to know you network operators APN setting These setting should be passed to the connect or init and join functions. You can also extend the APN database in MDMAPN.h.

For CDMA products you need to make sure that you have provisioned and activated the modem with either Sprint or Verizon.

Revision:
126:bfbb9e19f6e0
Parent:
125:25a292afbac6
Child:
127:c1c27d0f53c5
--- a/MDM.cpp	Thu Aug 20 13:47:29 2015 +0000
+++ b/MDM.cpp	Thu Aug 20 16:40:55 2015 +0000
@@ -441,10 +441,10 @@
         sendFormated("AT+CGMM\r\n");
         if (RESP_OK != waitFinalResp(_cbString, _dev.model))
             goto failure;
-        // get the 
-        sendFormated("AT+CGMR\r\n");
+        // get the version
+        sendFormated("ATI9\r\n");
         if (RESP_OK != waitFinalResp(_cbString, _dev.ver))
-            goto failure;            
+            goto failure;
         // Returns the ICCID (Integrated Circuit Card ID) of the SIM-card. 
         // ICCID is a serial number identifying the SIM.
         sendFormated("AT+CCID\r\n");
@@ -734,7 +734,6 @@
         sendFormated("AT+CGATT=1\r\n");
         if (RESP_OK != waitFinalResp(NULL,NULL,3*60*1000)) 
             goto failure;
-        
         // Check the profile
         int a = 0;
         bool force = true;
@@ -759,7 +758,7 @@
                 sendFormated("AT+UPSD=" PROFILE ",7,\"0.0.0.0\"\r\n");
                 if (RESP_OK != waitFinalResp())
                     goto failure;
-            }
+/*NOT SUP*/ }
             do {
                 if (config) {
                     apn      = _APN_GET(config);
@@ -799,7 +798,7 @@
                             sendFormated("AT+UPSD=" PROFILE ",6,%d\r\n",i);
                             if (RESP_OK != waitFinalResp())
                                 goto failure;
-                        }
+/*NOT SUP*/             }
                         // Activate the profile and make connection
                         sendFormated("AT+UPSDA=" PROFILE ",3\r\n");
                         if (RESP_OK == waitFinalResp(NULL,NULL,150*1000))