-
Notifications
You must be signed in to change notification settings - Fork 5
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
ble connection timeouts #29
Comments
Hi @ojg78, thanks for the feedback. Its a good question, and I'm not sure of the answer, since Qt handles BLE connections a bit differently on each platform. So while I don't see that timeout on any of my Pokit devices, I'm most often testing on Linux. You could try raising the timeout (eg to 3 minutes), and enabling debug output, like:
Let us know if that helps, or what the debug output shows. Thanks! |
With the 180 second timeout the same behaviour occurs, issue the command once and get an error then immediately issue the command again to get a successful response. The 180 second timeout option returns the error without delay. Debug below. PS C:\Users\xxxxx\Downloads\dokit-0.5.3+1375.win.x86-64.msvc.qt-6.8.0.portable\dokit-0.5.3+1375.win.x86-64.msvc.qt-6.8.0.portable> .\dokit -d orange logger-fetch --timeout 180s --debug I removed some of the sample returns for brevity 2025-01-26T02:37:51.000Z 19.5364 |
Very useful, thank you. Is it just the nature of ble that commands need to be issued several times before they are acknowledged by the Pokit Pro? Seems like it needs a very recent connection to have happened to accept further commands.
PS C:\Users\xxxxx\Downloads\dokit-0.5.3+1375.win.x86-64.msvc.qt-6.8.0.portable\dokit-0.5.3+1375.win.x86-64.msvc.qt-6.8.0.portable> .\dokit -d orange logger-fetch
dokit.cli.command: Looking for device "orange"...
qt.bluetooth.windows: Could not await characteristic read
dokit.cli.command: Bluetooth controller error: QLowEnergyController::ConnectionError
PS C:\Users\xxxxx\Downloads\dokit-0.5.3+1375.win.x86-64.msvc.qt-6.8.0.portable\dokit-0.5.3+1375.win.x86-64.msvc.qt-6.8.0.portable> .\dokit -d orange logger-fetch
dokit.cli.command: Looking for device "orange"...
dokit.cli.command: Fetching logger samples...
dokit.cli.command: Fetching 48 logger samples..
The text was updated successfully, but these errors were encountered: