1) Config not surving across power on/off: I built a 2nd version of the gps face for multiclock. I setup GPS for PMSOO mode with 120/6 second values. The GPS then powers off. However when it powers back on through a simple Bangle.setGPSPower() the settings dont seem to have stuck. I deleted the gpsservice widget in case of complications. This is the bit that I did not / but now have tested. The UBX-CFG-SAVE() seems to work if it is within the same session of the GPS being on. IE without out it, the GPS continues to run through a 1 sec high power cycle. So probably more work to do on the GPS config to ensure the setup survives a power cycle.
2) gpssetup App code: I have the code for a gpssetup App, I will post it here. Would you want it as a pull request yet or shall I hang on until I have either succeeded to make the config survive or I am out of things to try ?
3) Going to try a tiny widget to show GPS Power status - a bit like the BLE widget turns blue on connection. It will use getGPSPower() so wont work for others unless they have 208.160 firmware or above.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Few further developments / tests.
1) Config not surving across power on/off: I built a 2nd version of the gps face for multiclock. I setup GPS for PMSOO mode with 120/6 second values. The GPS then powers off. However when it powers back on through a simple Bangle.setGPSPower() the settings dont seem to have stuck. I deleted the gpsservice widget in case of complications. This is the bit that I did not / but now have tested. The UBX-CFG-SAVE() seems to work if it is within the same session of the GPS being on. IE without out it, the GPS continues to run through a 1 sec high power cycle. So probably more work to do on the GPS config to ensure the setup survives a power cycle.
2) gpssetup App code: I have the code for a gpssetup App, I will post it here. Would you want it as a pull request yet or shall I hang on until I have either succeeded to make the config survive or I am out of things to try ?
3) Going to try a tiny widget to show GPS Power status - a bit like the BLE widget turns blue on connection. It will use getGPSPower() so wont work for others unless they have 208.160 firmware or above.