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:
29:53d346010624
Parent:
28:4d9509e3b1cf
Child:
31:a0bed6c1e05d
--- a/MDM.h	Tue Apr 08 14:11:03 2014 +0000
+++ b/MDM.h	Tue Apr 08 15:48:16 2014 +0000
@@ -88,6 +88,7 @@
     bool socketClose(int socket);
     bool socketFree(int socket);
     // sms
+    int smsCount(void);
     bool smsSend(const char* num, const char* buf);
     bool smsDelete(int ix);
     bool smsRead(int ix, char* num, char* buf, int len);
@@ -108,6 +109,7 @@
     static int _cbUSORF(int type, const char* buf, int len, USORFparam* param);
     typedef struct { char* buf; char* num; } CMGRparam;
     static int _cbCUSD(int type, const char* buf, int len, char* buf);
+    static int _cbCPMS(int type, const char* buf, int len, int* num);
     static int _cbCMGR(int type, const char* buf, int len, CMGRparam* param);
     static int _cbCGSN(int type, const char* buf, int len, char* imei);
     static int _cbGSN(int type, const char* buf, int len, char* imei);