ChristianKuehnel / plantgateway

Bluetooth to mqtt gateway for Xiaomi Mi plant sensors
Apache License 2.0
271 stars 43 forks source link

Failed to connect to peripheral #21

Closed brianhanifin closed 5 years ago

brianhanifin commented 6 years ago

I'm trying to run Plant Gateway on a Raspberry Pi Zero W on Raspbian Lite. I installed using the pip command. I enabled debug mode and copied and pasted the tail end of my log file. I'd appreciate any advice you may have on connecting. BTW, I replaced the battery a few weeks ago and have it sitting 3 feet from the Pi. When I pop the battery out and replace it the LED on top of the Mi Flora starts flashing. Plus I got the mac address from... I forget the command (hcitool scan?). Thank you.

Here is the partial log file: https://gist.github.com/brianhanifin/45e439b8b9b3bde3fcedcbc5876e466f

ChristianKuehnel commented 5 years ago

Looking at the log file:

Is this a permanent problem or is it only sporiadic? I do also have sporadic failures in my setup (1-2 failures out of 50 measurements), which is fine for me...

jagter commented 5 years ago

I'm trying to run Plant Gateway on a Raspberry Pi Zero W on Raspbian Lite. I installed using the pip command. I enabled debug mode and copied and pasted the tail end of my log file. I'd appreciate any advice you may have on connecting. BTW, I replaced the battery a few weeks ago and have it sitting 3 feet from the Pi. When I pop the battery out and replace it the LED on top of the Mi Flora starts flashing. Plus I got the mac address from... I forget the command (hcitool scan?). Thank you.

Here is the partial log file: https://gist.github.com/brianhanifin/45e439b8b9b3bde3fcedcbc5876e466f

Which bluez version did you installed? I fixed the issue with the following steps:

Test with gatttool: /usr/bin/gatttool -B AA:BB:CC:DD:EE:FF -I

ChristianKuehnel commented 5 years ago

closing old ticket