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 SDK BLE Protobuf: connecting to a new network doesn't work #461

Closed
pavlosharhan2 opened this issue Jan 5, 2024 · 3 comments
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@pavlosharhan2
Copy link

pavlosharhan2 commented Jan 5, 2024

Abstract:

PythonSDK - can't connect to a new netork
MacOS
Hero10,12

Description:

I've started playing around with COHN, but stuck with connecting to network:

I am using python SDK on mac, I am not able to send RequestConnectNew message to the gopro to connect to unprovisioned network.

Connecting to already provisioned network works. For example: I connect the network using quick app, then power off- power on the gopro and send RequestConnect command using Python SDK - and it successfully connects to the network.

The error i get Is: "bleak: Device disconnected. Error writing to characteristic".

I can't understand what is happening. Looks like the gopro is dropping BLE connection or something, and the mobile is able to handle it somehow, but Python sdk - doesn't.

I see the same behaviour on both Hero 10 And hero 12.

The code i use:

`async def main():

async with WirelessGoPro(enable_wifi=False) as gopro:

    
    result = await gopro.connect_to_access_point("ssidname", "password")`

One more thing to add: I had to increase BLE Write timeout from 5 to 20 sec inside the module, otherwise even scanning didn't work for me on.

@pavlosharhan2 pavlosharhan2 added the bug Something isn't working label Jan 5, 2024
@github-actions github-actions bot added the triage Needs to be reviewed and assigned label Jan 5, 2024
@Fougl
Copy link

Fougl commented Apr 4, 2024

@pavlosharhan any solutions here? I cant even work with the demo, gives me an error #457

Is this support even alive? I see basically nothing has been answered since February. I cant wrap my head around this COHN things

@tcamise-gpsw
Copy link
Collaborator

I'm going to close this as duplicate. Let's continue discussing in #457.
FWIW that COHN demo is still working fine for me.

@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 duplicate This issue or pull request already exists and removed triage Needs to be reviewed and assigned labels Apr 10, 2024
@Fougl
Copy link

Fougl commented Apr 11, 2024

I'm going to close this as duplicate. Let's continue discussing in #457. FWIW that COHN demo is still working fine for me.

Yeah i managed to make it work with trial and error, will post my code inn #457. i think i dont understand exactly how it works - and i still get some errors, but i get the cohn working in the end

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

3 participants