Naoya Takamura / C027_Support

Fork of C027_Support by u-blox

Files at this revision

API Documentation at this revision

Comitter:
ntaka206
Date:
Wed Jul 16 12:33:49 2014 +0000
Parent:
104:c64ba749a422
Commit message:
3G?????????????

Changed in this revision

MDM.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MDM.cpp	Fri Jul 04 05:20:57 2014 +0000
+++ b/MDM.cpp	Wed Jul 16 12:33:49 2014 +0000
@@ -4,6 +4,8 @@
  #include "C027_api.h"
 #endif
 #include "MDMAPN.h"
+// ntaka
+#define MDM_DEBUG
                 
 #define PROFILE         "0"   //!< this is the psd profile used
 #define MAX_SIZE        128   //!< max expected messages
@@ -451,7 +453,8 @@
             goto failure;
     } 
     // enable the network registration unsolicited result code
-    sendFormated("AT+CREG=%d\r\n", (_dev.dev == DEV_LISA_C200) ? 1 : 2);
+//    sendFormated("AT+CREG=%d\r\n", (_dev.dev == DEV_LISA_C200) ? 1 : 2);
+    sendFormated("AT+CGREG=%d\r\n", (_dev.dev == DEV_LISA_C200) ? 1 : 2);
     if (RESP_OK != waitFinalResp())
         goto failure;
     // Setup SMS in text mode 
@@ -549,6 +552,7 @@
     _net.ci = 0xFFFFFFFF;
     // check registration
     sendFormated("AT+CREG?\r\n");
+//    sendFormated("AT+CGREG?\r\n");
     waitFinalResp();     // don't fail as service could be not subscribed 
     if (_dev.dev != DEV_LISA_C200) {
         // check PSD registration