C027_SupportTest_xively_locationで使用しているC027用ライブラリ
Fork of C027_Support by
下記のプログラムC027_SupportTest_xively_locationで使用しているC027用ライブラリです。
Import programC027_SupportTest_xively_location
インターフェース2014年10月号のu-blox C027で3G通信する記事で使用したプログラム。 CQ publishing Interface 2014.10 issue, C027 3G test program.
オリジナルのライブラリは下記を参照してください。
Import libraryC027_Support
support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.
Diff: MDM.cpp
- Revision:
- 77:55788e619858
- Parent:
- 76:f7c3dd568dae
- Child:
- 78:caf0014375cb
--- a/MDM.cpp Mon May 19 13:05:41 2014 +0000 +++ b/MDM.cpp Mon May 19 16:18:29 2014 +0000 @@ -361,10 +361,7 @@ if ((RESP_OK != ret) && (RESP_ERROR != ret)) return false; // Enter PIN if needed - if (_dev.sim == SIM_MISSING) { - ERROR("SIM not inserted\r\n"); - return false; - } else if (_dev.sim == SIM_PIN) { + if (_dev.sim == SIM_PIN) { if (!simpin) { ERROR("SIM PIN not available\r\n"); return false; @@ -376,8 +373,11 @@ RELAX_MS(1000); } } - if (_dev.sim != SIM_READY) + if (_dev.sim != SIM_READY) { + if (_dev.sim == SIM_MISSING) + ERROR("SIM not inserted\r\n"); return false; + } // get the manufacturer sendFormated("AT+CGMI\r\n"); if (RESP_OK != waitFinalResp(_cbString, _dev.manu))