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.

Files at this revision

API Documentation at this revision

Comitter:
nherriot
Date:
Sun Feb 10 16:23:44 2013 +0000
Parent:
70:f6d75c4bb9d9
Child:
73:ed96bd79cb48
Commit message:
small dbg changes

Changed in this revision

USBHostWANDongle.lib Show annotated file Show diff for this revision Revisions of this file
VodafoneUSBModem.cpp Show annotated file Show diff for this revision Revisions of this file
VodafoneUSBModem.h Show annotated file Show diff for this revision Revisions of this file
--- a/USBHostWANDongle.lib	Wed Feb 06 16:55:08 2013 +0000
+++ b/USBHostWANDongle.lib	Sun Feb 10 16:23:44 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/donatien/code/USBHostWANDongle_bleedingedge/#25c10b07bb17
\ No newline at end of file
+http://mbed.org/users/donatien/code/USBHostWANDongle_bleedingedge/#e1f5ba831485
--- a/VodafoneUSBModem.cpp	Wed Feb 06 16:55:08 2013 +0000
+++ b/VodafoneUSBModem.cpp	Sun Feb 10 16:23:44 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__ "VodafoneUSBModem.cpp"
 #endif
@@ -526,17 +526,19 @@
             m_dongle.tryConnect();
             if (m_dongle.connected())
             {
-                DBG("Great the dongle is connected");
+                DBG("Great the dongle is connected - I've tried %d times to connect", x);
                 detectConnectedModem = true;        // OK we can break out this while loop now - the dongle has been connected
                 break;                              // Break out of the for loop once the dongle is connected - otherwise try for a while more
             }
             Thread::wait(10);
         }
-        
-        // OK we got this far - so give up trying and let someone know you can't see the modem
-        m_dongleConnected = false;                  // set the member variable of this object to false - so if we get called again we know we have to try to detect again
-        ERR("There is no dongle pluged into the board, or the module does not respond. Is the module/modem switched on?");
-        return HARDWARE_NO_RESPONSE;
+        if (!detectConnectedModem)
+        {
+            // OK we got this far - so give up trying and let someone know you can't see the modem
+            m_dongleConnected = false;                  // set the member variable of this object to false - so if we get called again we know we have to try to detect again
+            ERR("There is no dongle pluged into the board, or the module does not respond. Is the module/modem switched on?");
+            return HARDWARE_NO_RESPONSE;
+        }
     }
         
     
--- a/VodafoneUSBModem.h	Wed Feb 06 16:55:08 2013 +0000
+++ b/VodafoneUSBModem.h	Sun Feb 10 16:23:44 2013 +0000
@@ -22,7 +22,7 @@
 
 #include "core/fwk.h"
 
-#include "USBHostWANDongleLib/USB3GModule/WANDongle.h"
+#include "USBHostWANDongle/USB3GModule/WANDongle.h"
 #include "at/ATCommandsInterface.h"
 #include "serial/usb/USBSerialStream.h"
 #include "ip/PPPIPInterface.h"