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

Compatibility with bluepy v1.3.0 #8

Open
BensonHsu opened this issue Oct 11, 2020 · 0 comments
Open

Compatibility with bluepy v1.3.0 #8

BensonHsu opened this issue Oct 11, 2020 · 0 comments
Assignees
Labels
compatibility Compatibility issue with 3rd party project

Comments

@BensonHsu
Copy link
Owner

[Symptom]
Sbrick-server.py could not connect to SBRICK again after a while, when using bluepy v1.3.0. You could find lots of messages like below if encounters this issue:

main.BTLEException: Failed to connect to peripheral <SBRICK MAC>, addr type: public

[Work around]
When this happens, the only way to re-connect to SBRICK is: (you could chose one of them)

  1. Power off / on SBRICK
  2. Use bluetoothctl to disconnect SBRICK manually:
$ bluetoothctl
[bluetooth]# disconnect <SBRICK MAC>

There is no such issue with bluepy v1.1.4, and I have no idea why this could happen. I would suggest to use bluepy v1.1.4 for now until this is fixed. I also created a new branch "bluepy_v1_1_4" in this repository if you would like a stable one. In this branch, you should use version v1.1.4 bluepy. Use below commands to install bluepy v1.1.4 manually.

# make sure what bluepy version installed
pip3 list | grep -in bluepy

# if version is not 1.1.4, re-installed it
pip3 uninstall bluepy
pip3 install bluepy==1.1.4
@BensonHsu BensonHsu added the compatibility Compatibility issue with 3rd party project label Oct 11, 2020
@BensonHsu BensonHsu self-assigned this Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility issue with 3rd party project
Projects
None yet
Development

No branches or pull requests

1 participant