Skip to content

provision_cohn.py in tutorial 9 throws an assertion error #766

@CrabbyPete

Description

@CrabbyPete

First ensure you are using a camera that is currently supported by Open GoPro. Any other tickets will be rejected.

Component
What is the bug in?

  • Tutorials

Describe the bug
I have been walking through each demo to try run on a Raspberry Pi. I got all the way to provisioning the cohn to get the certificate and I get the following:

INFO     08:42:05.333 Scanning for bluetooth devices...                                                                                     ble_connect.py:55
INFO     08:42:10.904    Discovered: 66-11-B3-12-D5-B9                                                                                      ble_connect.py:73
INFO     08:42:10.916    Discovered: ED-9C-EF-D8-47-80                                                                                      ble_connect.py:73
INFO     08:42:10.926    Discovered: GoPro 6516                                                                                             ble_connect.py:73
INFO     08:42:10.937    Discovered: 65-FA-AD-18-EC-6D                                                                                      ble_connect.py:73
INFO     08:42:10.947    Discovered: 51-3D-BC-AD-7E-26                                                                                      ble_connect.py:73
INFO     08:42:10.957    Discovered: E2-5C-5D-5F-5C-78                                                                                      ble_connect.py:73
INFO     08:42:10.967    Discovered: DF-C7-71-7A-FA-4F                                                                                      ble_connect.py:73
INFO     08:42:10.977    Discovered: 72-62-25-0F-81-7C                                                                                      ble_connect.py:73
INFO     08:42:10.987    Discovered: F5-8D-76-72-37-2E                                                                                      ble_connect.py:73
INFO     08:42:10.997    Discovered: CB-62-C1-12-72-65                                                                                      ble_connect.py:73
INFO     08:42:11.004 Found 1 matching devices.                                                                                             ble_connect.py:77
INFO     08:42:11.011 Establishing BLE connection to DF:81:83:A8:D0:E3: GoPro 6516...                                                       ble_connect.py:82
INFO     08:42:13.082 BLE Connected!                                                                                                        ble_connect.py:85
INFO     08:42:13.090 Attempting to pair...                                                                                                 ble_connect.py:88
INFO     08:42:13.099 Pairing complete!                                                                                                     ble_connect.py:94
INFO     08:42:13.106 Enabling notifications...                                                                                             ble_connect.py:97
INFO     08:42:13.113 Enabling notification on char b5f90081-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.193 Enabling notification on char b5f90084-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.291 Enabling notification on char b5f90083-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.388 Enabling notification on char 00002a19-0000-1000-8000-00805f9b34fb                                                   ble_connect.py:101
INFO     08:42:13.486 Enabling notification on char b5f90092-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.583 Enabling notification on char b5f90079-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.681 Enabling notification on char b5f90075-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.778 Enabling notification on char b5f90073-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.876 Enabling notification on char b5f90077-aa8d-11e3-9046-0002a5d5c51b                                                   ble_connect.py:101
INFO     08:42:13.973 Done enabling notifications                                                                                          ble_connect.py:103
INFO     08:42:13.980 BLE Connection is ready for communication.                                                                           ble_connect.py:104
/etc/timezone is deprecated on Debian, and no longer reliable. Ignoring.
INFO     08:42:14.087 Setting the camera's date and time to 2025-05-30 08:42:14.087561-04:00:-240 is_dst=True                            provision_cohn.py:36
DEBUG    08:42:14.096 Writing: 0c:0f:0a:07:e9:05:1e:08:2a:0e:ff:10:01                                                                    provision_cohn.py:56
DEBUG    08:42:14.169 Received response at GoProUuid.COMMAND_RSP_UUID: 02:0f:02                                                      decipher_response.py:161
DEBUG    08:42:14.177 self.bytes_remaining=0                                                                             ble_command_get_hardware_info.py:100
ERROR    08:42:14.185 AssertionError()

Hardware

  • Camera: Hero10 Black
  • Raspberry Pi Zero W 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtutorialsRelating to tutorialswontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions