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.

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Fri Aug 28 12:40:05 2015 +0000
Parent:
129:7b747676de86
Child:
131:965a7cbc1e58
Commit message:
adding quotes around the SIM pin

Changed in this revision

MDM.cpp Show annotated file Show diff for this revision Revisions of this file
MDM.h Show annotated file Show diff for this revision Revisions of this file
--- a/MDM.cpp	Fri Aug 21 09:13:56 2015 +0000
+++ b/MDM.cpp	Fri Aug 28 12:40:05 2015 +0000
@@ -421,7 +421,7 @@
                     ERROR("SIM PIN not available\r\n");
                     goto failure;
                 }
-                sendFormated("AT+CPIN=%s\r\n", simpin);
+                sendFormated("AT+CPIN=\"%s\"\r\n", simpin);
                 if (RESP_OK != waitFinalResp(_cbCPIN, &_dev.sim))
                     goto failure;
             } else if (_dev.sim != SIM_READY) {
--- a/MDM.h	Fri Aug 21 09:13:56 2015 +0000
+++ b/MDM.h	Fri Aug 28 12:40:05 2015 +0000
@@ -6,7 +6,8 @@
 #include "Pipe.h"
 #include "SerialPipe.h"
 
-#ifdef TARGET_UBLOX_C027
+#ifdef TARGET_UBLOX_C027 
+ // you can change this is you like to use a shield even on the C027
  #define MDM_IF(onboard,shield) onboard
 #else
  #define MDM_IF(onboard,shield) shield