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

I can not connect to my miband 2 #29

Open
JoaoNeto99 opened this issue Jul 14, 2019 · 1 comment
Open

I can not connect to my miband 2 #29

JoaoNeto99 opened this issue Jul 14, 2019 · 1 comment

Comments

@JoaoNeto99
Copy link

Hello, how are you? I'm having trouble connecting to my miband 2. I get this error right after I use it python example.py --mac F3:77:1A:30:11:BB --init can you help me?

2019-07-14 19:58:08,024 MiBand2 (INFO) > Connecting to F3:77:1A:30:11:BB
Traceback (most recent call last):
File "example.py", line 18, in
band = MiBand2(MAC, debug=True)
File "/media/joao/ae7aaea4-b12b-4927-9747-e801a8106f15/joao/Área de Trabalho/Pasta sem título/MiBand2-master/base.py", line 134, in init
Peripheral.init(self, mac_address, addrType=ADDR_TYPE_RANDOM)
File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 391, in init
self._connect(deviceAddr, addrType, iface)
File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 439, in _connect
raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp)
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral F3:77:1A:30:11:BB, addr type: random

@franalotto94
Copy link

Hello,

Try to reset Bluetooth harware by typing on terminal:
sudo hciconfig hci0 reset

Sincerely,
Francesco

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

2 participants