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:
124:65eb7d58f2da
Parent:
120:0e718a4ea25e
Parent:
123:66cef6353b13
Child:
125:25a292afbac6
--- a/MDM.h	Wed Jul 01 13:21:31 2015 +0000
+++ b/MDM.h	Thu Aug 20 08:07:37 2015 +0000
@@ -6,7 +6,7 @@
 #include "Pipe.h"
 #include "SerialPipe.h"
 
-#ifdef TARGET_UBLOX_C027
+#if 0//def TARGET_UBLOX_C027
  #define MDM_IF(onboard,shield) onboard
 #else
  #define MDM_IF(onboard,shield) shield
@@ -31,8 +31,10 @@
     // Types 
     // ----------------------------------------------------------------
     //! MT Device Types 
-    typedef enum { DEV_UNKNOWN, DEV_SARA_G350, DEV_LISA_U200, DEV_LISA_C200, 
-                   DEV_SARA_U260, DEV_SARA_U270, DEV_LEON_G200 } Dev; 
+    typedef enum { DEV_UNKNOWN, 
+                   DEV_SARA_G350, DEV_LISA_U200, DEV_LISA_C200, 
+                   DEV_SARA_U260, DEV_SARA_U270, DEV_LEON_G200, 
+                   DEV_TOBY_L200, DEV_TOBY_L201, DEV_TOBY_L210,  } Dev; 
     //! SIM Status
     typedef enum { SIM_UNKNOWN, SIM_MISSING, SIM_PIN, SIM_READY } Sim;
     //! SIM Status
@@ -53,13 +55,14 @@
     //! Registration Status
     typedef enum { REG_UNKNOWN, REG_DENIED, REG_NONE, REG_HOME, REG_ROAMING } Reg; 
     //! Access Technology
-    typedef enum { ACT_UNKNOWN, ACT_GSM, ACT_EDGE, ACT_UTRAN, ACT_CDMA } AcT; 
+    typedef enum { ACT_UNKNOWN, ACT_GSM, ACT_EDGE, ACT_UTRAN, ACT_CDMA, ACT_LTE } AcT; 
     //! Network Status
     typedef struct { 
         Reg csd;        //!< CSD Registration Status (Circuit Switched Data)
         Reg psd;        //!< PSD Registration status (Packet Switched Data)
+        Reg eps;        //!< EPS Registration status
         AcT act;        //!< Access Technology
-        int rssi;       //!< Received Signal Strength Indication (in dBm, range -113..-53)
+        int rssi;       //!< Received Signal Strength Indication (in dBm, range -113..-51)
         int ber;        //!< Bit Error Rate (BER), see 3GPP TS 45.008 [20] subclause 8.2.4
         char opr[16+1]; //!< Operator Name
         char num[32];   //!< Mobile Directory Number
@@ -105,9 +108,9 @@
         \param status an optional struture to with device information 
         \return true if successful, false otherwise
     */
-    bool init(const char* simpin = NULL, DevStatus* status = NULL, 
+    virtual 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. 
     */
@@ -603,7 +606,7 @@
               int txSize    = 128 );
     //! Destructor          
     virtual ~MDMSerial(void);
-    
+     
     /** Get a line from the physical interface. 
         \param buf the buffer to store it
         \param buf size of the buffer