Multi-Hackers / SocketModem

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
29:7408b1bdad37
Parent:
23:bc6f98a1eb22
Child:
30:06c756af6c5c
--- a/cellular/Cellular.h	Tue Dec 17 20:52:05 2013 +0000
+++ b/cellular/Cellular.h	Wed Dec 18 16:04:57 2013 +0000
@@ -52,6 +52,14 @@
     virtual unsigned int writeable();
     
     //Other
+    /** A method to reset the Multi-Tech Socket Modem.  This command brings down the
+    * PPP link if it is up.  After this function is called, at least 30 seconds should
+    * be allowed for the cellular radio to come back up before any other Cellular
+    * functions are called.
+    */
+    /** this needs to be investigated.  After we tell the radio to reset and wait 30 seconds,
+    * we can't seem to get it to respond to even a simple signal strength query.
+    */
     virtual void reset();    
 
     //Cellular Radio Specific
@@ -73,7 +81,7 @@
     * @param state if true echo will be turned off, otherwise it will be turned on.
     * @returns the standard AT Code enumeration.
     */
-    Code echoOff(bool state);
+    Code echo(bool state);
     
     /** A method for getting the signal strength of the radio. This method allows you to
     * get a value that maps to signal strength in dBm. Here 0-1 is Poor, 2-9 is Marginal,
@@ -114,9 +122,11 @@
     std::string local_address;
     unsigned int host_port;
     std::string host_address;
+    DigitalIn* dcd;
+    DigitalOut* dtr;
 
     Cellular(); //Private constructor, use the getInstance() method.
-    Cellular(MTSBufferedIO* io); //Private constructor, use the getInstance method.
+    Cellular(MTSBufferedIO* io); //Private constructor, use the getInstance() method.
     
 };