Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of C027_Support by
Revision 105:839c6c8b7a16, committed 2014-07-16
- 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