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.

--- a/SerialPipe.h	Fri Nov 15 13:33:39 2013 +0000
+++ b/SerialPipe.h	Tue Nov 19 08:34:51 2013 +0000
@@ -9,27 +9,30 @@
     SerialPipe(PinName tx, PinName rx, int rxSize = 128, int txSize = 128, const char* name = NULL);
     virtual ~SerialPipe(void);
     // tx channel
-    int put(const char* b, int s, bool t = false) ;
+    int writeable(void);
+    int putc(int c); // blocking
+    int put(const void* buffer, int length, bool blocking = false);
     // rx channel
     int readable(void);
-    int getc(void);
-    int get(char* b, int s, bool t = false);
+    int getc(void); // blocking
+    int get(void* buffer, int length, bool blocking = false);
+    virtual int _getc();
+    virtual int _putc(int c);
     void rxIrqBuf(void);
     void txIrqBuf(void);
+    void txStart(void);
     Pipe<char> _pipeRx;
     Pipe<char> _pipeTx;
+// -----------------------------------------------------------------------
 #define WAIT      -1
 #define NOT_FOUND  0
-// -----------------------------------------------------------------------
 class SerialPipeEx : public SerialPipe
     SerialPipeEx(PinName tx, PinName rx, int rxSize = 128, int txSize = 128, const char* name = NULL);
-    int getLine(char* b, int s);
+    int getLine(char* buffer, int length);