Code supports writing to the SD card as well as working with the Volckens group smartphone apps for the mbed HRM1017

Dependencies:   ADS1115 BLE_API BME280 Calibration CronoDot EEPROM LSM303 MCP40D17 NCP5623BMUTBG SDFileSystem SI1145 STC3100 mbed nRF51822

Fork of UPAS_BLE_and_USB by Volckens Group Sensors

Changes

RevisionDateWhoCommit message
124:15466d0f04ab 2016-03-05 caseyquinn "Fixed" the digital pot cutout issue by not allow large digital pot jumps while the boost is turned on. Also limited the lowest digital pot setting to 5. default tip
123:2765e75fd0a6 2016-03-05 jelord One line removed to allow android functionality
122:f26474cc223a 2016-02-23 caseyquinn Added in NVIC_SystemReset(); to replace the pbKill = 0; line to reset the UPAS rather than shut it down. This still allows for the BLE to be shut off after being programmed, and will allow either DEMO, x number hrs from now, or start/stop
121:6631364325df 2016-02-23 caseyquinn Changed the minimum digital pot value from 2 to 5 to try and eliminate the issue with power cut out that appears to happen sometimes. Need to check to make sure this works.
120:c7818e89e3da 2016-02-21 caseyquinn Modified wait statment line 421 by removing the subtracted value of 0.2 to see if this is adding to the issue of crashing the i2c bus by multiple calls to the RTC.
119:350293861b5c 2016-02-21 caseyquinn modified wait statement line 522 to just use the log interval rather than the loginterval - 0.2 ms. I think this might be causing multiple calls to the RTC and crashing the i2c bus.
118:9cf0a67fb581 2016-02-19 jelord New way to control UPAS with app... Always turns off after it has been programmed
117:074ebef2dc12 2016-02-18 caseyquinn added in fmod to make the logging ~exactly log interval seconds per the RTC
116:5ab9d74cfb6d 2016-02-18 caseyquinn callbacks in place with v108 mbed library .h files.
115:fb25810c1fab 2016-02-18 caseyquinn updated mbed to v96 and then added in the 3 i2c .h files from mbed v108 and buffer.h This code is using wait statements rather than call backs.
114:84e759e07948 2016-02-18 caseyquinn updated mbed library to rev 96. still having issues with callbacks and also i2c crashing...
113:846f67efaa80 2016-02-17 caseyquinn commented out callback functions (replaced by while loop and wait statements in main()). Also added purple light to indicate waiting to start.
112:fd14d51e3493 2016-02-17 jelord Log Data loop placed into main to avoid timeout issues
111:5f2ba5f1a468 2016-02-12 caseyquinn ticker craps out after ~72 minutes. Reverted to last version of code that uses the Timeout function. There will be some logg drift but I think it should continuous logg fairly regularly.
110:67980ebdebf6 2016-02-12 caseyquinn Replaced logg interupt using Timeout with Ticker function.
109:33d7fc6c1b9b 2016-02-12 jelord serial number fixed
108:2cf8d5159fc6 2016-02-11 caseyquinn removed fmod loop in the log loop to try and eliminate the log loop crash issue. this however will likely cause inconsistent log points such as 10 sec, 11 sec, 10 sec, 11 sec, etc
107:5e3364e42214 2016-02-11 caseyquinn serial number hack fix requires a .hex file for every upas. currently has the latest calibration coefficients.
106:3911b3c7a24e 2016-02-10 caseyquinn Hard coded calibration value for temp fix
105:f3be9e0314f7 2016-01-22 caseyquinn Updated the log function to the latest control loop added onto Jake's latest version of the app code
104:c57913399e79 2016-01-22 jelord Code updated to allow change of serial number / display serial number to app at scan. Still needs to be merged with previous commit
103:a2d7d946d69c 2016-01-20 caseyquinn Updated the datalog function to match the code in UPAS_USB_Updated
102:d25eab697fe0 2016-01-15 jelord Serial Number & sample name fixed. No memory issues in this commit... blocks of code commented out
101:0c3f33f14f4f 2016-01-13 jelord Small changes for broadcasting "running" characterisitic
100:da71436aa52a 2016-01-12 jelord 24-Hour Mode added
99:229435dd4cfb 2016-01-11 jelord Name of multiple UPAS can now be distinguished by app
98:d70ff5a0b2e6 2016-01-09 jelord Flow Rate adjustment on app is now used by UPAS
97:c596f8ed4562 2015-12-17 jelord log interval is now settable/usable from iphone app
96:03106adb45c9 2015-12-17 jelord Changes to Readability of BLE characterisitics
95:0ae0ffddc544 2015-12-11 jelord Small fix to code so app see correct previous start and end time... forking
94:c57720890e76 2015-12-10 jelord Works with new App and can write to the SD card
93:b53a9a7cb8f1 2015-10-09 caseyquinn Made adjustments to improve the logging intervals to be consistent for 10 and 1 second logging with out drift or multiple logging events per second.
92:bb36c4bedb8e 2015-10-06 joshuasmth04 I2C bus crashing and the device not shutting down should now be fixed. The device may not log exactly every 10s but it's very very very close.
91:f838d9a5b596 2015-09-29 joshuasmth04 Fixed 24hr test conditions, also commented out RTC OSF checks until we figure out why the RTC is losing power when turned off.
90:26a08de1a0ac 2015-09-24 joshuasmth04 Updated the USM library to open the normal menu when you close the admen menu.; ;
89:047e8558fd09 2015-09-24 joshuasmth04 Changed program flow after opening admen menu to restart if any of the program flow settings have changed. Also opening the admen menu now counts as opening the menu in general.
88:9142f21a4715 2015-09-23 caseyquinn set the gain for between 1 and 2 lpm back to 25.
87:c920521283b2 2015-09-23 caseyquinn Changed demo mode to run at admin flow and datalogging settings.
86:60c9ec6e48ed 2015-09-23 joshuasmth04 Added check to make sure the start and stop times are valid when using programmable start or stop times.
85:a95dd5f03818 2015-09-18 joshuasmth04 A lot of stuff, see the onenote page.;
84:85d11d422da3 2015-09-16 caseyquinn Made some adjustments to the Honduras initialization to ensure the runready is set to 0 and saved once turned on the second time. Start time seems to be fixed now that there is content in the while loop. Stop time now isn't working..
83:9153d6c3af81 2015-09-16 caseyquinn Demo and Honduras initialization seem to be working properly, but the UBCUO (wait till start time matches RTC time) initialization still has issues. Calibration values are also still an issue.
82:e01326a63ae9 2015-09-16 caseyquinn Made some minor adjustments to the demo mode loop and now when in UBCUO mode the UPAS doesn't shut down after exiting the menu.
81:480f0310ef9a 2015-09-15 caseyquinn Made the SD file name read in the serial number, and added in a printf loop to show the calibration values that are being used for debugging.
80:5487ba127c82 2015-09-15 joshuasmth04 New structures to support additional run modes, such as Demo mode that just runs the pumps and logs data from power on til you turn it off.
79:ed555e9081d0 2015-09-15 joshuasmth04 Added UPAS Demo mode to the admen menu options under consider run ready.
78:a465de6cc47e 2015-09-11 joshuasmth04 Minor modifications to accommodate the UBM's new admen menu and it's arguments.
77:24fbeb2bfe05 2015-09-04 joshuasmth04 Unified UPAS UBCO and Honduras code into one code that can be configured with the Admin menu. Admin menu is still USM exclusive.
76:8130cb6776c6 2015-09-01 joshuasmth04 Updated to uses the newest UBM, for real this time.
75:52e3d2280040 2015-09-01 joshuasmth04 Updated with the new Universal BLE Menu (UBM), and fixed a minor bug/nit when checking the RTC's OSF.
74:c574a6e04230 2015-08-30 caseyquinn Read EEPROM prior to BLE init to show first 8 characters of the 15 character sample name
73:47910ee23ebf 2015-08-30 caseyquinn Removed the duplicate UPAS-Hondduras_with_BLE that was in the program, changed to UPAS0012, and changed the file naming convention to place "_" between the date, time, and 15 character sample identifier.
72:0b36575ab00d 2015-08-20 joshuasmth04 Updated to uses the universal serial menu.
71:78edbceff4fc 2015-08-19 joshuasmth04 Modified UPAS Honduras code to allow time/date and name to be changed from either the USB serial menu or the BLE menu. The light will flash brighter and dimmer to indicate it's looking for a USB or BLE signal.
70:81f04e69e08a 2015-08-16 caseyquinn Fixed issues with logging time stamp variation. Logs at 10s intervals at 0,10,20,30,40,50 seconds.
69:7a99d97c334e 2015-08-15 caseyquinn Added in the Dec to January Rollover scenario
68:ca444d0760a0 2015-08-15 caseyquinn UPAS0011 version of the code.
67:300418575137 2015-08-15 caseyquinn Upon first powerup requires the menu to be brought up and time/date and sample name to be updated, once exit menu, powers down. Second power starts initialization and then runs for 24 hours or until powered down.
66:ebbca6a4372e 2015-08-14 caseyquinn Updated all libraries to point to the volckens group libraries and not the personal libraries.
65:4cab23b9784d 2015-08-14 caseyquinn UPAS code for Honduras deployment. Want to the UPAS to run at 1 lpm for 24 hours upon turning on. Also need to ensure the RTC is properly set based on RTC flag.