-
Notifications
You must be signed in to change notification settings - Fork 285
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
Respond to Peripheral Connection Parameters Update Request #80
Comments
Yet another reason to give the ble a try : https://gitub.com/currantlabs/ble. We just had the same issues recently, and it was a quick and easy fix on the ble, but will need a lot more work on paypal/gatt to make sure it works properly. |
Ok, I will give it a try. Thank you for your quick response. |
https://github.com/currantlabs/ble is the correct link |
Argh, right. Thanks! |
Are there any other examples, notes or best practices associated with the library? Steve
|
I pushed a next branch, which updates the API to take advantage of "context" for timeout and cancelations. Add a new example, blesh , which I think it might grow as a standalone utility later. |
I went to build blesh to test it but it missing a bunch of dependencies. What is the best way around this besides start grabbing them one by one. ./../darwin/log.go:4:2: cannot find package "github.com/mgutz/logxi/v1" in any of: |
|
Thanks for the details, I was figuring that out while you wrote it. I still get the same results however when I go to build the original Explorer example. It fails with: ./main.go:48: undefined: ble.WithSighandler Is there something that changed? |
Okay, just updated it. Give it another shot :) |
Ok, I will. I am running your shell on mac OS and it works fine to keep connected to Polar H7. I have other devices I will try as well. I am also running on raspberry Pi 3 and it is working well. I no longer get the drops from the Polar H7 band, so it is better already. I compile for Pi with: I will keep you up to date on how things are going on the Pi. If I get some spare time, maybe I can help a bit on the project if you are interested. |
Great! Looking forward to it. |
I am connecting to a Polar H7 chest strap. If you look at the Polar Documentation, it says that if the connection is not setup correctly, after 30 seconds it will issue a Connection Parameters Update Request. It does, but the GATT library just ignores it and prints "ignore l2cap signal" plus some data. 30 seconds later, it disconnects. If I could get this to respond or set the parameters initially, then it would not disconnect. Is there any way to make the connection parameters change per the peripherals request or set by default?
The Polar H7 wants:
Min Connection Interval: 312.25 ms
Max Connection Interval: 500 ms
Latency: 0
Timeout Multiplier 600 x 10ms = 6sec
I do similar process on Core iOS BTLE and the Polar never disconnects because I guess the core iOS library is handling this by itself.
Reference on how Polar H7 behaves: https://developer.polar.com/wiki/H6_and_H7_Heart_rate_sensors
The text was updated successfully, but these errors were encountered: