454
Fork of C027_Support by
Revision 141:acb569d2a138, committed 2017-08-23
- Comitter:
- iftaziz
- Date:
- Wed Aug 23 10:31:59 2017 +0000
- Parent:
- 140:5a4bc07f8bd0
- Commit message:
- 20170823
Changed in this revision
diff -r 5a4bc07f8bd0 -r acb569d2a138 MDM.cpp --- 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;
diff -r 5a4bc07f8bd0 -r acb569d2a138 MDM.h --- 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
diff -r 5a4bc07f8bd0 -r acb569d2a138 MDMAPN.h --- 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 */