454

Fork of C027_Support by Umar Naeem

Files at this revision

API Documentation at this revision

Comitter:
iftaziz
Date:
Wed Aug 23 10:31:59 2017 +0000
Parent:
140:5a4bc07f8bd0
Commit message:
20170823

Changed in this revision

MDM.cpp 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
MDMAPN.h Show annotated file Show diff for this revision Revisions of this file
--- a/MDM.cpp	Tue May 23 12:51:49 2017 +0000
+++ b/MDM.cpp	Wed Aug 23 10:31:59 2017 +0000
@@ -797,8 +797,9 @@
     } else { 
         // check gprs attach status 
         sendFormated("AT+CGATT=1\r\n");
-        if (RESP_OK != waitFinalResp(NULL,NULL,3*60*1000)) 
+        if (RESP_OK != waitFinalResp(NULL,NULL,8*60*1000)){      //-- iazi
             goto failure;
+        }
         // Check the profile
         int a = 0;
         bool force = true;
--- a/MDM.h	Tue May 23 12:51:49 2017 +0000
+++ b/MDM.h	Wed Aug 23 10:31:59 2017 +0000
@@ -13,7 +13,7 @@
 #endif
 
 //! include debug capabilty on more powerful targets with a dedicated debug port 
-#if defined(TARGET_LPC1768) || defined(TARGET_LPC4088) || defined(TARGET_K64F)
+#if defined(TARGET_LPC1768) || defined(TARGET_LPC4088) || defined(TARGET_K64F) || TARGET_UBLOX_C027
  #define MDM_DEBUG 
 #endif 
 
--- a/MDMAPN.h	Tue May 23 12:51:49 2017 +0000
+++ b/MDMAPN.h	Wed Aug 23 10:31:59 2017 +0000
@@ -31,7 +31,7 @@
 
 //! default APN settings used by many networks
 static const char* apndef = _APN(,,)
-                            _APN("internet",,);
+                            _APN("",,);
 
 /*! this is a list of special APNs for different network operators 
     There is no need to enter the default apn internet in the table; 
@@ -40,15 +40,19 @@
     The APN without username/password have to be listed first.
 */
 static const APN_t apnlut[] = {
-// MCC Country
-//  { /* Operator */ "MCC-MNC[,MNC]" _APN(APN,USERNAME,PASSWORD) },
-// MCC must be 3 digits
-// MNC must be either 2 or 3 digits
-// MCC must be separated by '-' from MNC, multiple MNC can be separated by ','
+    // MCC Country
+    //  { /* Operator */ "MCC-MNC[,MNC]" _APN(APN,USERNAME,PASSWORD) },
+    // MCC must be 3 digits
+    // MNC must be either 2 or 3 digits
+    // MCC must be separated by '-' from MNC, multiple MNC can be separated by ','
 
 // 232 Austria - AUT
     { /* T-Mobile */ "232-03",  _APN("m2m.business",,) },
 
+// 410 Pakistan - PK
+    { /* Warid */ "410-07",  _APN("warid",,) },
+    { /* Warid */ "410-01",  _APN("warid",,) },
+
 // 460 China - CN
     { /* CN Mobile */"460-00",  _APN("cmnet",,)
                                 _APN("cmwap",,) },
@@ -96,6 +100,7 @@
                                 _APN("click",,)    /* pre-pay */ },
 
 // 234 United Kingdom - GB
+    { /* giffgaff */    "234-10",  _APN("giffgaff.com",,) },
     { /* O2 */       "234-02,10,11",
                                 _APN("mobile.o2.co.uk","faster","web") /* contract */
                                 _APN("mobile.o2.co.uk","bypass","web") /* pre-pay */