Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gpssetup] PSMOO setting not working as intended #3694

Open
nravanelli opened this issue Dec 12, 2024 · 3 comments
Open

[gpssetup] PSMOO setting not working as intended #3694

nravanelli opened this issue Dec 12, 2024 · 3 comments

Comments

@nravanelli
Copy link
Contributor

Affected hardware version

Bangle 2

Your firmware version

2v24

The bug

Unsure if this is a bug, but seems to not work as intended/explained.

My assumption with the PSMOO option, using default settings results in the GPS module searching for 5-6 seconds and then only attempting to find a GPS connection every 2 minutes (or 120 seconds).

However, after attempting this on two watches, the eventlistener for Bangle.on('GPS'); continues to respond, and looks like GPS coordinates are continuing to update, even after a fix is obtained. Is this expected ? The suggested battery life when running in PSMOO is also not what I observed (<10 h from 95% charge), which leads me to the conclusion that this isnt expected.

Code to replicate is below:

  function logGPS(f){
      console.log(f);
  };
  Bangle.on('GPS', logGPS);
  Bangle.setGPSPower(1);
  require("gpssetup").setPowerMode({power_mode:"PSMOO"})
    .then(function() {Bangle.setGPSPower(1);
    });

Installed apps

No response

@gfwilliams
Copy link
Member

The gpssetup app is only listed as for Bangle.js 1, not Bangle.js 2. When 'Bangle.js 2' is listed as the watch type in the App Loader it shouldn't even be visible to install?

It'll be sending config commands meant for the wrong GPS chip to the Bangle so it won't have any effect at all I'm afraid.

@nravanelli
Copy link
Contributor Author

Read the documents, one must...

I'll revise and commit a modified gpssetup module to include version checking for BangleJS2. with setIntervals/timeouts to emulate PSMOO on the BangleJS1

@gfwilliams
Copy link
Member

Great, thanks! Maybe the app loader should be more insistent about installing apps that aren't meant to work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants