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.
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Fork of VodafoneUSBModem by
Revision 80:c0e63c16306e, committed 2013-01-15
- Comitter:
- ashleymills
- Date:
- Tue Jan 15 17:24:37 2013 +0000
- Parent:
- 79:a6ac8206a58d
- Child:
- 81:da03da068398
- Commit message:
- Turn of read receipts in MU509;
Changed in this revision
| VodafoneUSBModem.cpp | Show annotated file Show diff for this revision Revisions of this file |
| sms/SMSInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/VodafoneUSBModem.cpp Wed Jan 09 16:13:50 2013 +0000
+++ b/VodafoneUSBModem.cpp Tue Jan 15 17:24:37 2013 +0000
@@ -580,6 +580,13 @@
{
INFO("Using a Huawei MU509 module.");
m_ppp.setHangupViaATPort(true);
+
+ // this modem defaults to sending a delivery receipt to the SM storage area
+ // need to disable this for the current library to work in a sensible manner
+ ret = m_at.executeSimple("at+csmp=1,,0,0",NULL);
+ if(ret!=0) {
+ return NET_PROTOCOL;
+ }
}
else
{
--- a/sms/SMSInterface.cpp Wed Jan 09 16:13:50 2013 +0000
+++ b/sms/SMSInterface.cpp Tue Jan 15 17:24:37 2013 +0000
@@ -17,7 +17,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define __DEBUG__ 4
+#define __DEBUG__ 0
#ifndef __MODULE__
#define __MODULE__ "SMSInterface.cpp"
#endif
@@ -117,6 +117,7 @@
int ret;
DBG("Get next message");
+
m_inboxMtx.lock();
if( ((m_msgRefListCount == 0) && m_needsUpdate) || ((m_msgRefListCount > 0) && (m_msgRefList[0] == -1)) )
{
@@ -318,6 +319,7 @@
/*virtual*/ bool SMSInterface::isATCodeHandled(const char* atCode) //Is this AT code handled
{
+
DBG("AT code is %s", atCode);
if( strcmp("+CMTI", atCode) == 0 )
{
@@ -354,6 +356,7 @@
{
return; //Not supported
}
+
DBG("Unsollicited result code: %s - %s", atCode, evt);
