A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
30:06c756af6c5c
Parent:
27:8e6188cbcfd4
Parent:
29:7408b1bdad37
Child:
33:e04aa7c013c9
--- a/cellular/Cellular.h	Tue Dec 17 23:58:50 2013 +0000
+++ b/cellular/Cellular.h	Wed Dec 18 16:11:36 2013 +0000
@@ -186,8 +186,17 @@
     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
     /** A method for sending a generic AT command to the radio. Note that you cannot
     * send commands and have a data connection at the same time.
     * 
@@ -226,8 +235,8 @@
     * @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,
     * 10-14 is Ok, 15-19 is Good, and 20+ is Excellent.  If you get a result of 99 the
@@ -316,10 +325,11 @@
     std::string local_address; //Holds the local address for socket connections.
     unsigned int host_port; //Holds the remote port for socket connections.
     std::string host_address; //Holds the remote address for socket connections.
+    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.
 };
 
 #endif /* CELLULAR_H */
\ No newline at end of file