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

Python Tutorials Connections do not establish robustly #530

Closed
onigiri5884 opened this issue Apr 23, 2024 · 1 comment
Closed

Python Tutorials Connections do not establish robustly #530

onigiri5884 opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@onigiri5884
Copy link

Component

  • GoPro HERO12 Black (v02.20)
  • Python Tutorials (Windows10, Python 3.10.11)

Describe the bug

The following error occurs when executing ble_connect.py from the second time onwards.
The BLE pairing is successful but failed to notification.

INFO     15:52:17.031 Found 1 matching devices.               ble_connect.py:79
INFO     15:52:17.046 Establishing BLE connection to          ble_connect.py:84
         E4:D0:C0:26:4E:57: GoPro XXXX...
INFO     15:52:20.037 BLE Connected!                          ble_connect.py:87
INFO     15:52:20.053 Attempting to pair...                   ble_connect.py:90
INFO     15:52:20.059 Pairing complete!                       ble_connect.py:96
INFO     15:52:20.059 Enabling notifications...               ble_connect.py:99
INFO     15:52:20.059 Enabling notification on char          ble_connect.py:103
         00002a19-0000-1000-8000-00805f9b34fb
ERROR    15:53:00.046 Connection establishment failed: Could ble_connect.py:110
         not start notify on 000C: Unreachable

After resetting wireless connection on GoPro User-Setting, the script runs normally and succeeds enabling the notification.

Please tell me how to execute ble_connect.py successfully repeatedly without GoPro wireless resetting.

@onigiri5884 onigiri5884 added the bug Something isn't working label Apr 23, 2024
@github-actions github-actions bot added the triage Needs to be reviewed and assigned label Apr 23, 2024
@tcamise-gpsw
Copy link
Collaborator

Unfortunately this is the current state of the Python tutorials / SDK as tracked by the pinned issue here: #487

This one in particular seems to be a bleak bug: hbldh/bleak#1473

The only current solution is to follow the troubleshooting steps from the tutorial

@tcamise-gpsw tcamise-gpsw closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2024
@tcamise-gpsw tcamise-gpsw added duplicate This issue or pull request already exists and removed triage Needs to be reviewed and assigned labels Apr 23, 2024
@tcamise-gpsw tcamise-gpsw changed the title Bug Description Python Tutorials Connections do not establish robustly Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants