u-blox USB modems (GSM and CDMA)

Dependencies:   CellularUSBModem

Dependents:   C027_CANInterfaceComm C027_ModemTransparentUSBCDC_revb UbloxModemHTTPClientTest C027_HTTPClientTest ... more

Legacy Networking Libray

This is an mbed 2 networking library. For an mbed OS 5 compatible library, please see:

Import libraryC027Interface

Socket interface for C027Interface. Implements the NetworkSocketAPI

Revision:
8:45f5433cfa96
Parent:
5:60b48a013e86
--- a/UbloxModem.h	Tue Dec 17 15:30:29 2013 +0000
+++ b/UbloxModem.h	Tue Mar 04 10:01:06 2014 +0000
@@ -30,6 +30,19 @@
 #include "link/LinkMonitor.h"
 #include "CellularModem.h"
 
+class genericAtProcessor : public IATCommandsProcessor
+{
+public:
+  genericAtProcessor();
+  const char* getResponse(void);
+private:
+  virtual int onNewATResponseLine(ATCommandsInterface* pInst, const char* line);
+  virtual int onNewEntryPrompt(ATCommandsInterface* pInst);
+protected:
+  char str[256];
+  int i;
+};
+
 /** u-blox WCDMA modem (LISA-U200)
  */
 class UbloxModem: public CellularModem
@@ -92,6 +105,8 @@
   */
   int getLinkState(int* pRssi, LinkMonitor::REGISTRATION_STATE* pRegistrationState, LinkMonitor::BEARER* pBearer);  
 
+  int getPhoneNumber(char* phoneNumber);  
+
   /** Get the ATCommandsInterface instance
     @return Pointer to the ATCommandsInterface instance
    */
@@ -130,7 +145,7 @@
   bool m_atOpen;          //< Is the interface to the ATCommandsInterface open? true/false
 protected:
   bool m_onePort;
-  bool m_gsm;
+  enum { LISA_C200, LISA_U200, SARA_G350, UNKNOWN } m_type;
 };
 
 #include "WANDongle.h"