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

Bangle 2: Heart Rate Sensor stops working at some point #2141

Closed
dashavoo opened this issue Feb 6, 2022 · 5 comments
Closed

Bangle 2: Heart Rate Sensor stops working at some point #2141

dashavoo opened this issue Feb 6, 2022 · 5 comments

Comments

@dashavoo
Copy link

dashavoo commented Feb 6, 2022

Device: Bangle 2 (Non-kickstarter).
Problem: After a while, the heart rate sensor stops working. Espruino thinks it is turned on.
Workaround: Long hold the button to reboot the watch.
Firmware: 2v12

Long description:

I have the heart rate sensor set to always in the health tracking options (Health Tracking app is at v0.11).
When I checked this morning to see what the readings were overnight, I noticed that the heart rate monitor no longer seemed to be active (no green LEDs, there had been no readings since late evening).

I rebooted the watch (long hold on button) and it started working again. I noticed because the hrm app was stuck on "Please Wait".

In the IDE, it seemed the Bangle thought the sensor was on:

>Bangle.isHRMOn()
=true

but there was never an event (as expected, the lights were not on). >Bangle.on('HRM', (hrm) => {console.log(hrm)}); never resulted in anything logged.

After rebooting the watch, everything was working as usual again.

Let me know if there is anything I can do to get more information out next time it happens.

@gfwilliams
Copy link
Member

Hi, thanks! did you got your Bangle from shop.espruino.com in the last week or so? If so I imagine it's one of the new batch with the updated VC31B sensor.

This issue could be related to that. Does:

Bangle.on('HRM-raw', (hrm) => {console.log(hrm)});

return anything? That's the raw data from the sensor - it's possible it thought it wasn't against your skin, but for some reason hasn't been able to turn itself back on

@dashavoo
Copy link
Author

dashavoo commented Feb 7, 2022

Yes I did. I will try that the next time it happens and report back.

Immediate edit: you're spot on. I just realised it happened yesterday after I had removes the watch to do the washing up. I just took the watch off and put it back on, and the sensor didn't come back on.

Nothing was returned for the raw events.

@gfwilliams
Copy link
Member

Ok, great - thanks! In the mean time, leaving the HRM on the 10 or 3 minute setting in the Health tracking shouldn't noticeably impact the quality of readings you get, and I believe will stop this from being a problem for you. It'll also help with power usage :)

@dashavoo
Copy link
Author

dashavoo commented Feb 7, 2022

OK, thanks. I was trying to capture as much heart rate data as I could, but I've probably got more than enough for the time being so will switch as suggested.

@gfwilliams
Copy link
Member

I think you mentioned:

Can i somehow get the state of lights, so based on that i could atleast invoke

But deleted it? If you look in the HRM-raw event there should be something like an isWorn field I guess you could check.

I plan to get the main issue fixed soon though - this doesn't affect the KickStarter bangle.js 2 though - just the new ones with VC31B

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