-
Notifications
You must be signed in to change notification settings - Fork 159
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
Unable to maintain connection on a Raspberry Pi 4 #99
Comments
Hi, I am also using raspberry pi 4b, but the noble functions do not seem to be triggered. I have posted the question here too: noble#945 Did you manage to get that? |
I don't have that problem, but I think it's a different issue. Have you run the
|
Oh yes it works. Thank you so much! |
I noticed that this line apear twice in README Run the following command to grant node the necessary privileges to read BLE data: sudo setcap cap_net_raw+eip PR to merge both and make it clearer is welcome |
@rzr Happy to do that, but some assistance with the original issue is also welcome. |
I have similar issue here, I managed to connect and receiving notification from my humidity sensor. However after I terminated the connection, it failed to reconnect(disconnect immediately after connection established). When restart Pi, it works again. |
@nathankellenicki did you find any solution? |
I had what I believe is the same issue as above, and I was able to resolve it by running the following commands to downgrade my Bluetooth firmware followed by a reboot.
This appears to be an upstream Pi issue, and not a noble problem directly. |
I believe I am running into a variant of this issue as well. On a Pi3b I can connect to a peripheral device, subscribe to a characteristic's notifications, and receive kilobytes of notifications with no problems. On a Pi4b with the same code, I receive ≈one notification and then immediately get disconnected (sometimes the disconnect happens before a notification, sometimes after a couple have been received). The disconnect reason code is 8 ( @jncraton's suggestion of downgrading |
I've encountered a similar problem on a RPi 4. With RPi Zero W it works. However with gatttool there is no problem at all. So the question is why does noble fail and gatttool not? I took a look with hcidump and on noble it shows
This line is completly missing when connecting with gatttool where it works.
I also manully changed with gatttool by "mtu 256" but it still worked. Hopefully this is still helpful for you. |
Hi,
I have a Raspberry Pi 4b running Raspbian (Lite). While everything works fine on macOS and on a Raspberry Pi 3b, on a Raspberry Pi 4b, the connection is established, and works fine (both sending and receiving data) for about two seconds, before disconnecting.
Some cursory googling suggests event type = 5 is
EVT_DISCONN_COMPLETE
and reason = 8 isBLE_HCI_ERROR_CON_TIMEOUT
.Anyone know why this might be happening?
The text was updated successfully, but these errors were encountered: