old_man_biking wrote:
Just FYI: I have built a PC application that downloads data from ANT+ BPM devices, and the UA-851 communicates perfectly with it.
Thank you! but by the way, I would like to ask you some questions!
Is there a way to know the exact moment when the blood pressure monitor has received and saved a new reading?
I need a similar use case to the weight scale profile, when in broadcast. This way the collection device is noticed whenever a new value is received. For what I've read of the ANT-FS protocol, I found no way of knowing that.
So the first workaround I tried, was to erase the FIT file every time the user takes a blood pressure reading and establishes a connection. That way the status byte would indicate that there is no data available to download and I would keep asking for it until there is. But...
Have you tried to erase the FIT file with all the measurements on the device?
I was able to send the erase command and successfully receive the erase response. Problem is after erasing it, the device enters in some kind of timeout. This is, when I open the channel after erasing the file, I simply don't receive any beacon from the device and therefore I can't see the value of the status bytes and therefore cannot continue the ANT-FS communication process.
The situation only goes back to "normal" if I manually press the START button on the device itself (a complete reading is not necessary, I can turn it off immediately after it starts working). By "normal" I mean that I receive link beacons with the status byte indicating there is no data available to download.
I also wanted to erase it because some time ago, the FIT file reached its size limit (at least it looked like that) and stopped saving new blood pressure readings, so I erased the file and everything went back to normal.
The final workaround I came up was to keep downloading the entire FIT file and check if there is a new record in it. For now it works... but it's a pretty rough solution don't you think?
I would really appreciate your help!
Thanks!