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

WiredGoPro is not correctly closed #331

Closed
Laurendus opened this issue Apr 21, 2023 · 3 comments
Closed

WiredGoPro is not correctly closed #331

Laurendus opened this issue Apr 21, 2023 · 3 comments
Assignees
Labels
bug Something isn't working demos Relating to demos duplicate This issue or pull request already exists

Comments

@Laurendus
Copy link

Component
What is the bug in?
python sdk

Describe the bug
The close()-Method of the WiredGoPro appears to be a stub which does not correctly reset the state of a GoPro connected via USB.

To Reproduce

  1. Using the context manager successfully connect via USB to the GoPro.
  2. Leave the context manager, triggering a call to close().
  3. Try connecting again. This will fail since the camera remains in a connected state.

Expected behavior
Closing the context manager successfully disables the usb control to support repeatedly entering the context manager without having to physically disconnect the camera to reset its state.

Screenshots
-/-

Hardware

  • Camera: HERO10 Black
  • macOS

Additional context
The following code appears to at least mitigate the problem. I am unsure whether additional cleanup is required.

    def close(self) -> None:
        """Gracefully close the GoPro Client connection"""
        self.http_command.wired_usb_control(control=Params.Toggle.DISABLE)
        self._open = False
@Laurendus Laurendus added the bug Something isn't working label Apr 21, 2023
@Ganarloo
Copy link

Ganarloo commented Apr 25, 2023

Hi Laurendus, I'm having an issue with connecting to my HERO 10 Black via USB (#330). I'm very curios to know what code you're using to connect to the GoPro. Would you be able to share it?

@tcamise-gpsw
Copy link
Collaborator

tcamise-gpsw commented Dec 6, 2023

Yeah this unfortunately has not been tested / designed for yet.

@tcamise-gpsw tcamise-gpsw added the demos Relating to demos label Dec 6, 2023
@tcamise-gpsw tcamise-gpsw self-assigned this Dec 6, 2023
@tcamise-gpsw
Copy link
Collaborator

Closing this since I've pinned a known issue about the need for a major investigation into Python SDK BLE connection robustness here

@tcamise-gpsw tcamise-gpsw closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
@tcamise-gpsw tcamise-gpsw added the duplicate This issue or pull request already exists label Apr 10, 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 demos Relating to demos duplicate This issue or pull request already exists
Projects
Status: Done
Development

No branches or pull requests

3 participants