Skip to content

COHN tutorial failing on GoPro Hero10 #682

@kmatzen

Description

@kmatzen

I have several GoPro Hero10 with the GoPro Labs firmware. I'm attempting to provision COHN using tutorial 9. However, several requests are failing.

(1) Set local time fails

INFO     tutorial_logger:provision_cohn.py:36 Setting the camera's date and time to 2025-03-05 20:11:57.859386-08:00:-480 is_dst=False
DEBUG    tutorial_logger:provision_cohn.py:56 Writing: 0c:0f:0a:07:e9:03:05:14:0b:39:fe:20:00
DEBUG    tutorial_logger:decipher_response.py:161 Received response at GoProUuid.COMMAND_RSP_UUID: 02:0f:02
DEBUG    tutorial_logger:ble_command_get_hardware_info.py:100 self.bytes_remaining=0
ERROR    tutorial_logger:provision_cohn.py:259 AssertionError()

I commented out the set_date_time call since I already manually set my clocks. The cameras successfully connect to my wifi.

(2) Clearing COHN cert fails

INFO     tutorial_logger:provision_cohn.py:228 Provisioning COHN
INFO     tutorial_logger:provision_cohn.py:73 Clearing any preexisting COHN certificate.
DEBUG    tutorial_logger:provision_cohn.py:85 Writing: 02:f1:66
DEBUG    tutorial_logger:decipher_response.py:161 Received response at GoProUuid.COMMAND_RSP_UUID: 02:f1:02
DEBUG    tutorial_logger:ble_command_get_hardware_info.py:100 self.bytes_remaining=0
ERROR    tutorial_logger:provision_cohn.py:259 AttributeError("'TlvResponse' object has no attribute 'feature_id'")

I seem to be getting a TLV response when a protobuf response is expected?

I don't have a COHN cert yet, so I commented out clear_certificate.

(3) Create COHN cert fails

INFO     tutorial_logger:provision_cohn.py:107 Creating a new COHN certificate.
DEBUG    tutorial_logger:provision_cohn.py:119 Writing: 02:f1:67
DEBUG    tutorial_logger:decipher_response.py:161 Received response at GoProUuid.COMMAND_RSP_UUID: 02:f1:02
DEBUG    tutorial_logger:ble_command_get_hardware_info.py:100 self.bytes_remaining=0
ERROR    tutorial_logger:provision_cohn.py:259 AttributeError("'TlvResponse' object has no attribute 'feature_id'")

This one too seems to be returning a TLV response instead of a protobuf response?

I stopped there since I can't create a COHN cert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds to be reviewed and assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions