Watch App : HRV

Former Member
Former Member
HRV app. Discussion, report bugs, suggested features, etc...

HRV
Get the app.

Graphing.
The design currently only saves to 1 location per day. The timestamp is taken when the test starts, so autostart will take the timestamp at the scheduled time. This means that any saved test will overwrite any previous test of that same day. A day is calculated from the local timezone, so travelling won't disrupt the storage so long as you have updated the timezone before starting the test. The averages are a 30 day mean average.

Description & Explanation
Wouldn't that be nice. Will happen, but might take a while.
This page could be useful.

Notes
- Your device must have firmware that supports Connect IQ Apps.
- You can save the results by creating a log file. To do this you must work out which name has been applied to the HRV app file. The apps are in the /GARMIN/APPS folder. It will be a name something like A6227C9B.PRG. You then create a log file with the same name, e.g /GARMIN/APPS/LOGS/A6227C9B.TXT. Each reading you save will output a result formatted as ISO8601 date & time, hrv, avg pulse, 30 day hrv avg, 30 day pulse avg.
  • The same thing happened to me when I started the HRV app without wearing the HR monitor. The next time I tried to do a run, it didn't even look for my HR monitor and I found that it had been turned off in settings.
  • Former Member
    Former Member over 10 years ago
    I had neglected to ensure the ANT channel was closed on exit. I will post an update ASAP.
  • Former Member
    Former Member over 10 years ago
    Bugfix added. Thanks for the feedback all. I can't fix what I don't know to be broke.
  • I use a different calculation than 20lnRMSSD (patented),.




    can you say what the calc is ? or what the highest value might be (for perspective)?
  • Former Member
    Former Member over 10 years ago
    Its already hidden here in the thread in post #16. Not sure how best to write it out here.

    s = sum of all (interval deviation)^2
    n = number of deviations
    base = sqrt( s / n-1)
    log base (1.0512712) = hrv
  • Love the app, although I do not really know what the number means. I guess I need to run this regularly to check the HRV before it makes much sense.

    However, the latest version has crashed by fenix twice so far. I am running the latest 3.0 fw too.

    The first time I had just installed the app and did not have the HRM on so it did not find it. I went and put on the HRM and went to start the app again but it crashed. After that it worked fine and I got an HRV reading, so I thought I'd try to re-produce the problem. I took off the HRM and went to start the app again, for a second time it crashed the watch.

    Actually, maybe it was not related to the HRM since after the second reboot and running a second HRV test, I thought I'd try it again and it crashed.

    So, I kept the HRM on, and simply start the app, go back to the menu, start the app, go back to the menu and it will quite often crash the watch when doing this.

    So it works, but looks like it is a little unreliable and will periodically crash the watch on startup. Hopefully the cause can be found and this can be fixed. happy to help troubleshoot if required.

    [Edit] After doing this test, I found the HR was disabled. I thought this was fixed in 0.9.3 but maybe this was somehow associated with the watch crashing when starting up the app?
  • Former Member
    Former Member over 10 years ago
    Sorry it's crashing on you. After 0.9.1 I had totally rewritten the code, but rather try and rush for versions 0.92 & 0.93 I just pushed the same old code with minor modifications. I don't intend to release another bug fix with the old code. I am just about ready to release the new code, just finishing up the graphing at the moment, I hope to put it up in the next couple of days. Then if all goes well I will write some info on the app & hrv.
  • Thanks for the info. I will eagerly await the new version then.
  • Former Member
    Former Member over 10 years ago
    Sharkbait,

    I have done some analysis on your app, and have found that it is creating circular memory references. Because MonkeyC uses reference counting for its memory management, this is creating leaks in the device heap, which will eventually lead to a device crash.

    We are actively working on improvements that will recover this memory when applications are closed, as well as tools in the simulator to detect and report these issues.

    In the short term, you may want to identify the circular references in your app and attempt to prevent them, or remove them when the application closes.
  • Thanks, but when I do that the only options I see are "Connect to WIFI", "Mute Smart Notifications" or "Lock Device". Garmin Express says that the HRV app is installed.