init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Files at this revision

API Documentation at this revision

Comitter:
pathfindr
Date:
Mon Jan 21 19:43:17 2019 +0000
Parent:
46:b95fe3484d88
Child:
48:64b1613941d5
Commit message:
rc1;

Changed in this revision

README.md Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h Show annotated file Show diff for this revision Revisions of this file
modem.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/README.md	Sun Jan 20 22:05:07 2019 +0000
+++ b/README.md	Mon Jan 21 19:43:17 2019 +0000
@@ -22,6 +22,19 @@
 21) when setup fails it does not go into dormant mode, could be ram retention
 22) force CL locations to 6 decimal - needs to be done on web api
 
+//BOARD NOTES
+1) increase power trace width to mcu and gps
+2) add bigger cap to mcu?
+3) uart broken out
+4) make battery backup line to modem with jumper
+5) remove flash
+5) ext timer/watchdog/eeprom?
+6) cut notch into board
+7) breakout i2c on same row
+8) make spi breakouts, through hole
+9) need to add sim card holder
+10) make serial normally connected 
+11) swap humidity sensor for bmp680??? is it factory calibrated
 
 
 RESOLVED - TO BE TESTED AGAIN...
--- a/main.cpp	Sun Jan 20 22:05:07 2019 +0000
+++ b/main.cpp	Mon Jan 21 19:43:17 2019 +0000
@@ -498,7 +498,7 @@
         if(TEMP_o != -1) { RET_setting_impact_g = TEMP_o;                               }
         if(TEMP_p != -1) { RET_setting_impact_alert = TEMP_p;                           }
         if(TEMP_q != -1) { RET_setting_connection_timeout = TEMP_q;                     }
-            if(RET_setting_connection_timeout < 30 || RET_setting_connection_timeout > 240) { RET_setting_connection_timeout = DEFAULT_CONNECTION_TIMEOUT; }
+            if(RET_setting_connection_timeout < 60 || RET_setting_connection_timeout > 240) { RET_setting_connection_timeout = DEFAULT_CONNECTION_TIMEOUT; }
         if(TEMP_r != -1) { RET_setting_beacon_interval_seconds = TEMP_r;                }
         if(TEMP_s != -1) { RET_setting_beacon_scan = TEMP_s;                            }
         if(TEMP_t != -1) { RET_setting_activity_mode = TEMP_t;                          }
@@ -918,7 +918,7 @@
         RET_coldBoot = 1;
         switch(NRF_POWER->RESETREAS) {
             case 0x00000001  :
-                if(DEBUG_ON){debug_prep();snprintf(GLOBAL_debug_buffer, sizeof(GLOBAL_debug_buffer),"RR:PI\n");debug_exe();}
+                if(DEBUG_ON){debug_prep();snprintf(GLOBAL_debug_buffer, sizeof(GLOBAL_debug_buffer),"RR:HW\n");debug_exe();}
             break;
             case 0x00000002  :
                 if(DEBUG_ON){debug_prep();snprintf(GLOBAL_debug_buffer, sizeof(GLOBAL_debug_buffer),"RR:WD\n");debug_exe();}
--- a/main.h	Sun Jan 20 22:05:07 2019 +0000
+++ b/main.h	Mon Jan 21 19:43:17 2019 +0000
@@ -16,7 +16,7 @@
 //------------------------------------------------------------------------------
 //DEFINES
 //------------------------------------------------------------------------------ 
-#define FW_VERSION          1
+#define FW_VERSION          2
 #define SKU                 "GPSPLUS"
 #define HW_MAJORREVISION    "001"
 
--- a/modem.cpp	Sun Jan 20 22:05:07 2019 +0000
+++ b/modem.cpp	Mon Jan 21 19:43:17 2019 +0000
@@ -372,10 +372,7 @@
     
     //SHALL WE GET CELL LOCATION
     if (!haveGPSFix && accuracy >= 1) {
-
-        _w_disable = 1; //turn off airplane mode
         registerOnNetwork(2, 90000);
-        
         int matchCount;
         char type[6];
         char cellID[6];