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

Wed Jul 01 13:21:31 2015 +0000
Commit message:
add API to get current device status and ip

Changed in this revision

MDM.h Show annotated file Show diff for this revision Revisions of this file
--- a/MDM.h	Thu Mar 12 17:10:17 2015 +0000
+++ b/MDM.h	Wed Jul 01 13:21:31 2015 +0000
@@ -108,6 +108,11 @@
     bool init(const char* simpin = NULL, DevStatus* status = NULL, 
                 PinName pn MDM_IF( = MDMPWRON, = D4));
+    /** get the current device status
+        \param strocture holding the device information. 
+    */
+    void getDevStatus(MDMParser::DevStatus* dev) { memcpy(dev, &_dev, sizeof(DevStatus)); }
     /** register to the network 
         \param status an optional structure to with network information 
         \param timeout_ms -1 blocking, else non blocking timeout in ms
@@ -152,6 +157,11 @@
     MDMParser::IP gethostbyname(const char* host);
+    /** get the current assigned IP address
+        \return the ip that is assigned 
+    */
+    MDMParser::IP getIpAddress(void) { return _ip; }
     // ----------------------------------------------------------------
     // Sockets
     // ----------------------------------------------------------------