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:
Thu Jun 12 07:17:38 2014 +0000
Parent:
92:79b628d1da02
Child:
94:d697fe11f3e5
Commit message:
make destructor virtual (base class has changed)

Changed in this revision

GPS.h 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
SerialPipe.h Show annotated file Show diff for this revision Revisions of this file
--- a/GPS.h	Tue Jun 10 09:14:53 2014 +0000
+++ b/GPS.h	Thu Jun 12 07:17:38 2014 +0000
@@ -181,7 +181,7 @@
               int txSize    = 128 );
               
     //! Destructor
-    ~GPSSerial(void);
+    virtual ~GPSSerial(void);
     
     virtual bool init(PinName pn = NC);
     
@@ -219,7 +219,7 @@
            unsigned char i2cAdr GPS_IF( = GPSADR, = (66<<1) ), 
            int rxSize           = 256 );
     //! Destructor
-    ~GPSI2C(void);
+    virtual ~GPSI2C(void);
     
     /** helper function to probe the i2c device
         \return true if successfully detected the gps. 
--- a/MDM.h	Tue Jun 10 09:14:53 2014 +0000
+++ b/MDM.h	Thu Jun 12 07:17:38 2014 +0000
@@ -575,7 +575,7 @@
               int rxSize    = 256 , 
               int txSize    = 128 );
     //! Destructor          
-    ~MDMSerial(void);
+    virtual ~MDMSerial(void);
     
     /** Get a line from the physical interface. 
         \param buf the buffer to store it
@@ -605,7 +605,7 @@
     //! Constructor          
     MDMUsb(void);
     //! Destructor          
-    ~MDMUsb(void);
+    virtual ~MDMUsb(void);
     virtual int getLine(char* buffer, int length);
 protected:
     virtual int _send(const void* buf, int len);
--- a/SerialPipe.h	Tue Jun 10 09:14:53 2014 +0000
+++ b/SerialPipe.h	Thu Jun 12 07:17:38 2014 +0000
@@ -20,7 +20,7 @@
     
     /** Destructor
     */
-    ~SerialPipe(void);
+    virtual ~SerialPipe(void);
     
     // tx channel
     //----------------------------------------------------