pcolby / bipolar

Free your data from Polar FlowSync
GNU General Public License v3.0
115 stars 16 forks source link

Problem with R-R data #42

Closed ArtMag closed 7 years ago

ArtMag commented 9 years ago

I have problem with export R-R data from Polar FlowSync (V800, wer. 2.3.8). Bipolar (0.3.1.520) still created file HRM but no R-R data recorded.

pcolby commented 9 years ago

Hi @ArtMag,

The first thing to do is check whether Bipolar has captured any *-rrsamples files. Assuming Windows, these would be in directory like C:\Uses\<user>\AppData\Local\Polar\PolarFlowSync\export. There's a number of reasons why the V800 may not record R-R samples; for example, if it silently fell back to using the H7 sensor's 5kHz mode.

I've just checked my own captured V800 data, and it appears that Bipolar stopped seeing R-R data just after 2014-11-15 (no code changes around this time). This corresponds with the V800 1.2. firmware release, so its possible that firmware update changed / broke / disabled R-R export in some way. :frowning:

I'll investigate. Thanks.

ArtMag commented 9 years ago

Hi pcolby Thank you for your answer. I havent got any *-rrsamples in directory C:\...\export after 27.11.2014. I saw that in not only my problem (Polar Forum » Discussions on heart rate monitors » V800 » Bipolar open-source project) after V800 1.2. firmware release :(. Ill waiting for results of your investigation. Bipolar still gives better possibilities to export data than Polar Flow offers.

pcolby commented 9 years ago

Just a small update.

So far I've not been able to find an R-R data being exported since the 1.2 firmware release :frowning:

I will try an actual R-R recording session soon, just in case that gives any hints to what Polar changed (they may have dropped R-R from exercise sessions, or they may have reformatted / included it with one of the other data files?) :confused:

MHatGH commented 7 years ago

hi, I think it is not necessary to record a separate RR-Session. In Bipolar "QVariantMap TrainingSession::parseSamples(QIODevice &data) const" you got this unused record "28". I gues this containes RR-Samples used to calc the heard rate from. Adding the following to the QVariantMap, works for me (not checked in detail but gives meaningful result at first glance, Thanks to rsc-dev/loophole, I got the idea from).

I use M400 and try to calc training-zones from this values. Likely to older "OwnZone" feature.

ADD_FIELD_INFO("28"  ,    "RRSample",                 EmbeddedMessage);     //RR-Sample Section
ADD_FIELD_INFO("28/1",    "RRvalue",                   Uint32);                           //RR-value - if not offline
ADD_FIELD_INFO("28/2",    "RRoffline",                EmbeddedMessage);     //RR-offline event
ADD_FIELD_INFO("28/2/1",  "starttime",                EmbeddedMessage);     //offline starts at lap-time
ADD_FIELD_INFO("28/2/1/1","hour",                     Uint32);              //start-hour
ADD_FIELD_INFO("28/2/1/2","minute",                   Uint32);              //start-minute
ADD_FIELD_INFO("28/2/1/3","second",                   Uint32);              //start-second
ADD_FIELD_INFO("28/2/1/4","milliseconds",             Uint32);              //start-milliseconds
ADD_FIELD_INFO("28/2/2"  ,"duration",                 EmbeddedMessage);     //offline duration
ADD_FIELD_INFO("28/2/2/1","hour",                     Uint32);              //duration-hour
ADD_FIELD_INFO("28/2/2/2","minute",                   Uint32);              //duration-minute
ADD_FIELD_INFO("28/2/2/3","second",                   Uint32);              //duration-second
ADD_FIELD_INFO("28/2/2/4","milliseconds",             Uint32);              //duration-milliseconds
pcolby commented 7 years ago

Cool! Thanks @MHatGH!

If what you're saying is correct, then it means that sometime back around V800 1.2 firmware release Polar moved the R-R sample data from a standalone rrsamples file a new field (28) in the samples data instead. If that's the case, then I'll definitely be able to update the app to use it.

:smile:

MHatGH commented 7 years ago

my pleasure !

With M400 the user do not have the Option for recording RR-Intervalls at all. There is just an "Fitnes Test", wich records them for a 2-3min period. But this results are stored in a separate RRSample file in a /FT - Folder on the device under the currecnt day.

So please do not delete this functionality of converting RRSample files, maybe there could be an application in future.

pcolby commented 7 years ago

So please do not delete this functionality of converting RRSample files

Understood! I'll add support the new field, while maintaining the existing support too :smile: