This library controls the WNC. There is a derived class for usage from the K64F board.

Fork of WncControllerLibrary by Fred Kellerman

Files at this revision

API Documentation at this revision

Comitter:
fkellermavnet
Date:
Mon Oct 10 17:02:24 2016 +0000
Parent:
31:5db38ccccd1d
Child:
33:2958e09ad308
Commit message:
Removed the power save mode turn off.

Changed in this revision

WncController.cpp Show annotated file Show diff for this revision Revisions of this file
WncController.h Show annotated file Show diff for this revision Revisions of this file
--- a/WncController.cpp	Fri Oct 07 18:36:42 2016 +0000
+++ b/WncController.cpp	Mon Oct 10 17:02:24 2016 +0000
@@ -1582,22 +1582,10 @@
     return (WNC_AT_CMD_OK == at_send_wnc_cmd("AT", &pRespStr, WNC_QUICK_CMD_TIMEOUT_MS)); // Heartbeat?
 }
 
-bool WncController::at_power_save_off_wnc(void)
-{
-    string *pRespStr;
-    AtCmdErr_e cmdRes = at_send_wnc_cmd("AT%SETCFG=\"pw_nosrvc\",\"none\"", &pRespStr, m_sCmdTimeoutMs);
-    
-    if (cmdRes == WNC_AT_CMD_OK)
-        return (true);
-    else
-        return (false);
-}
-
 bool WncController::at_init_wnc(bool hardReset)
 {
   string * pRespStr;
   AtCmdErr_e cmdRes;
-  static bool pwrSaveOnce = false;
   
   if (hardReset == true)
       dbgPuts("Hard Soft Reset!");
@@ -1622,13 +1610,6 @@
 
   cmdRes = at_send_wnc_cmd("AT", &pRespStr, WNC_QUICK_CMD_TIMEOUT_MS);     // Heartbeat?
   
-  // Altera suggests turning off power save mode and only do it 1 time!
-  if (pwrSaveOnce == false) {
-      dbgPuts("Power Saving Mode OFF!");
-      pwrSaveOnce = true;
-      at_power_save_off_wnc();
-  }    
-  
   // If the simple commands are not working, no chance of more complex.
   //  I have seen re-trying commands make it worse.
   if (cmdRes != WNC_AT_CMD_OK)
--- a/WncController.h	Fri Oct 07 18:36:42 2016 +0000
+++ b/WncController.h	Mon Oct 10 17:02:24 2016 +0000
@@ -404,7 +404,6 @@
     bool at_gettimedate_wnc(struct WncDateTime * tod);
     bool at_ping_wnc(const char * ip);
     bool at_geticcid_wnc(string * iccid);
-    bool at_power_save_off_wnc(void);
     
     // Utility methods
     void sendCmd(const char * cmd, bool crLf);