Skip to content

Bluetooth Para will intermittently disconnect while GUI is connected #6

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

Closed
dlktdr opened this issue Feb 5, 2021 · 3 comments
Closed
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@dlktdr
Copy link
Collaborator

dlktdr commented Feb 5, 2021

No description provided.

@dlktdr dlktdr added the bug Something isn't working label Feb 5, 2021
@dlktdr
Copy link
Collaborator Author

dlktdr commented Feb 10, 2021

Much better in 0.6 but still disconnects. Need to free up some more CPU.

I2C change next.

@dlktdr dlktdr added the help wanted Extra attention is needed label Mar 22, 2021
@dlktdr
Copy link
Collaborator Author

dlktdr commented Mar 22, 2021

This issue is going to be the end of me... there are sure some issues in the BLE library still. Just spent another 3hrs on it, just to have it disconnect again, although I figured out how to get the serial non-blocking to work in the process!

Patched two issues that would cause it to completely hang, one in the thread loop the other in a while. Still getting intermittent disconnects but reports it's connected. Can't disconnect and reconnect, gets stuck in a bad mode and won't recover without reboot.

If too much time goes by not allowing the ble thread to do it's thing seems to cause all the issues. So I still think switching I2C to non-blocking would free up a enough CPU time to solve this issue. BUT.... mbed's non-blocking I2C transfer can't be called from an ISR as of right now without faulting, so no go here either. You can start a single byte transfer from the User context which works but is completely useless for anything. Can't use the lower level NRFX driver for some reason I don't remember right now, so this leaves low level control via peripheral. Anyone want to help tackle this?

I see I'm not the only one who is experiencing this issue with the library. Hopefully there will be a solution soon.
arduino-libraries/ArduinoBLE#128
arduino-libraries/ArduinoBLE#130
arduino-libraries/ArduinoBLE#73

@dlktdr
Copy link
Collaborator Author

dlktdr commented Jun 13, 2021

WOOT!. I'm closing this old one. Please download 2.0

@dlktdr dlktdr closed this as completed Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant