BangleApps/apps/gpssetup/README.md

67 lines
2.6 KiB
Markdown
Raw Normal View History

2021-02-09 12:52:44 +00:00
# GPS Setup
An App to enable the GPS to be configured into low power mode.
## Goals
2021-02-09 21:19:43 +00:00
To develop an app that configures the GPS to run with the lowest
possible power consumption.
2021-02-09 12:52:44 +00:00
2021-02-09 21:19:43 +00:00
Example power consumption of the GPS while powered on:
2021-02-09 12:52:44 +00:00
* An app that turns on the GPS and constantly displays the screen
will use around 75mA, the battery will last between 3-4 hours.
2021-02-09 21:19:43 +00:00
* Using the GPS with Super-E Power Saving Mode (PSM) with the screen
off most of the time, will consume around 35mA and you might get
10hrs before a recharge.
2021-02-09 12:52:44 +00:00
* Using the GPS in Power Saving Mode On/Off (PSMOO) with suitable
settings can reduce the average consumption to around 15mA. A
simple test using a 120s update period, 6s search period was still
running with 45% battery 20 hours after it started.
## Settings
2021-02-09 21:19:43 +00:00
The Settings App enables you set the options below. Either start the
App from the launcher or go to Settings, select App/Widgets and then
'GPS Setup'.
2021-02-09 12:52:44 +00:00
2021-02-09 21:19:43 +00:00
When you exit the setup app, the settings will be stored in the
gpssetup.settings.json file, the GPS will be switched on and the
2021-02-09 12:52:44 +00:00
necessary commands sent to the GPS to configure it. The GPS is then
powered off. The GPS configuration is stored in the GPS non-volatile
2021-02-09 21:19:43 +00:00
memory so that next time the GPS is powered, that configuration is
used. These settings will remain for all apps that use the GPS.
2021-02-09 12:52:44 +00:00
- Power Mode:
- SuperE - the factory default setup for the GPS. The recommended
2021-02-09 21:19:43 +00:00
power saving mode. If you need frequent (every second) updates on
position, then this is the mode for you.
2021-02-09 12:52:44 +00:00
- PSMOO - On/Off power saving mode. Configured by interval and
search time. Choose this mode if you are happy to get a GPS
position update less often (say every 1 or 2 minutes). The longer
the interval the more time the GPS will spend sleeping in low
power mode (7mA) between obtaining fixes (35mA). For walking in
open country an update once every 60 seconds is adequate to put
you within a 6 digit grid refernce sqaure.
- update - the time between two position fix attempts.
- search - the time between two acquisition attempts if the receiver
is unable to get a position fix.
## References
* [UBLOX M8 Receiver Data Sheet](https://www.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_%28UBX-13003221%29.pdf)
* [UBLOX Power Management App Note](https://www.u-blox.com/sites/default/files/products/documents/PowerManagement_AppNote_%28UBX-13005162%29.pdf)
2021-02-09 23:41:39 +00:00
* Some useful code on Github can be found [here](https://portal.u-blox.com/s/question/0D52p0000925T00CAE/ublox-max-m8q-getting-stuck-when-sleeping-with-extint-pin-control)
2021-02-09 12:52:44 +00:00
and [here](https://github.com/thasti/utrak/blob/master/gps.c)