Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Revision:
26:2b769ed8de4f
Parent:
16:1bc3e44d4746
Child:
27:ec44d5a9544f
--- a/Cellular/CellularFactory.cpp	Mon Jun 23 14:33:01 2014 +0000
+++ b/Cellular/CellularFactory.cpp	Thu Jun 26 21:12:37 2014 +0000
@@ -35,14 +35,15 @@
         wait(1);
     }
 
-    /* AT#VVERSION is a IUP specific AT command
+    /* AT#VVERSION is a UIP specific AT command
      * if we get an error response, we're not using a UIP board */
     reply = sendCommand(io, "AT#VVERSION", 2000);
-    if (reply.find("error") != string::npos) {
+    if (reply.find("ERROR") != string::npos) {
         uip = false;
     } else {
         uip = true;
     }
+    
 
     if (uip && model.find("HE910") != string::npos) {
         type = Cellular::MTSMC_H5_IP;
@@ -56,7 +57,7 @@
         type = Cellular::MTSMC_C2_IP;
         logDebug("radio model: CE910");
         cell = new UIP(type);
-    /*
+    
     } else if (model.find("HE910") != string::npos) {
         type = Cellular::MTSMC_H5;
         logDebug("radio model: HE910");
@@ -73,7 +74,7 @@
         type = Cellular::MTSMC_C2;
         logDebug("radio model: CE910");
         cell = new EasyIP(type);
-    */
+    
     } else {
         logError("cannot continue - could not determine radio type");
         return NULL;