Vodafone K3770/K3772-Z modems driver & networking library

Dependencies:   Socket USBHostWANDongle lwip-sys lwip

Dependents:   VodafoneUSBModemHTTPClientTest VodafoneUSBModemNTPClientTest VodafoneUSBModemSMSTest VodafoneUSBModemUSSDTest ... more

Fork of VodafoneUSBModem_bleedingedge by Donatien Garnier

This is the driver for the Vodafone K3700 & K3772-Z Dongles:

K3770

More details and instructions can be found here.

Revision:
91:7b311719374d
Parent:
83:897a0de9d668
--- a/at/ATCommandsInterface.cpp	Thu Jun 27 12:16:30 2013 +0000
+++ b/at/ATCommandsInterface.cpp	Fri Sep 20 10:40:58 2013 +0000
@@ -297,7 +297,7 @@
   }
 
   DBG("Command returned successfully");
-
+  
   return ret;
 }
 
@@ -318,7 +318,20 @@
   {
     m_inputPos+=readLen;
     m_inputBuf[m_inputPos] = '\0'; //Add null terminating character to ease the use of str* functions
-    DBG("In buffer: [%s]", m_inputBuf);
+    #if __DEBUG__ >= 4
+    DBGX("In buffer: [");
+    if __DEBUG__
+    for(int i=0; i<strlen(m_inputBuf); i++) {
+       if(m_inputBuf[i]=='\r') {
+          DBGX("<CR>");
+       } else if(m_inputBuf[i]=='\n') {
+          DBGX("<LF>");
+       } else {
+          DBGX("%c",m_inputBuf[i]);
+       }
+    }
+    DBGX("]\r\n");
+    #endif
   }
 
   if( ret == NET_INTERRUPTED ) //It is worth checking readLen as data might have been read even though the read was interrupted
@@ -484,6 +497,7 @@
             m_inputBuf[crPos] = '\0';
             //Process line
             int ret = processReadLine();
+            // ret is non-zero in case of error
             if(ret)
             {
               m_inputPos = 0;