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

Not getting past "Collecting ACC data..." on windows #18

Open
Normega opened this issue Nov 16, 2023 · 3 comments
Open

Not getting past "Collecting ACC data..." on windows #18

Normega opened this issue Nov 16, 2023 · 3 comments

Comments

@Normega
Copy link

Normega commented Nov 16, 2023

Hi, I've been learning a lot about the polar interface through your project, thanks!

I'm having issues getting the data to come through on Windows- the window is starting up and I can see the pacer data, but no belt data (only the orange circle and line).
In the terminal, I'm seeing:
Found Polar device
Model Number: H10
Manufacturer Name: Polar Electro Oy
Serial Number: CA9E1121
Address: F8:65:D5:12:AA:17
Battery Level: 100%
Firmware Revision: 5.0.0
Hardware Revision: 00760690.03
Software Revision: 3.2.0
Collecting HR data...
Collecting ACC data...

Any ideas why belt data might not be getting integrated into the display?

@kieranabrennan
Copy link
Owner

@Normega I'm not sure what might cause this, I haven't tried this on Windows yet. I'd suggest updating the firmware on your Polar H10, and adding in print statements to see where it is failing.

@Logan9872
Copy link

Logan9872 commented Mar 9, 2024

Dear kbre93, thanks for your application! I've been learning a lot from your project.

I encountered a similar situation in Windows environment like @Normega, and I'm not sure what went wrong. However, based on my experience developing with the Polar SDK, I believe the issue lies in the asynchronous function part. There should be a certain time interval between subscribing to heart rate and acceleration data. So, I tried modifying the following code, and that solved the problem.

View.py_
async def main(self):
await self.connect_polar()
await asyncio.sleep(1)
await asyncio.gather(
self.model.update_acc(),
self.model.update_ibi(),
)
PolarH10.py__
async def start_hr_stream(self):
await asyncio.sleep(2)
await self.bleak_client.start_notify(PolarH10.HEART_RATE_MEASUREMENT_UUID, self.hr_data_conv)
print("Collecting HR data...", flush=True)


@Normega
Copy link
Author

Normega commented Mar 18, 2024

It's still a little buggy, but the sleep commands worked beautifully- I wonder if this is hardware / operating system specific- thanks so much for the suggestion!

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

3 participants