-
Notifications
You must be signed in to change notification settings - Fork 152
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
Issue with Provisioning COHN on GoPro 12 #457
Comments
That is quite an odd error. I've only ever seen this is an anomaly in bleak. |
when i reduce the size of SSID, it passes, and check if youve given enough ip address range in ur router gateway. |
I get exactly the same error, any solutions yet? @joelA11 dont quite understand what you did there. @tcamise-gpsw should I send you the log file? |
I'm still not able to reproduce this. Also fwiw I did push a pretty major update of the SDK this week. Can @Fougl or someone try again and post the complete log here of the failure? To clarify I want the |
Reduce the size of SSID and restrict the password to minimum characters. Also check if you've give enough ip address range in router. The bleak module that works has some constraints with passing the ssid and password as a sequence, which has the length restriction, so it's advised to have the ssid length minimal to pass with password along. |
@joelA11 Can you provide some more info on this bleak limitation? Where do you see this? I'm not convinced this is the problem since the Python SDK is fragmenting each packet into a maximum size of 20 bytes Thanks |
I think I figured out what is going on here and it is a bug on the GoPro side. It has nothing to do with Bleak. It is triggered by the size of the command, which is itself triggered by the sizes of ssid and password. I'll update the Python SDK and documentation to always use extended headers. |
The fix has been merged and released in v0.16.1 |
Reopening becuase this also needs to be fixed in the tutorials. |
This issue was found while running the demo file: demos/python/sdk_wireless_camera_control/open_gopro/demos/cohn.py
I ran the demo file for provisioning and test the GoPro for COHN and ran into this issue:
Seems like the password string is not being written to the BLE characteristic and only first character is being written
To Reproduce
Steps to reproduce the behavior:
Run this in command prompt: python cohn.py --ssid wifi-ap --password password
Expected behavior
Expected the GoPro 12 to be provisioned successfully
Hardware
The text was updated successfully, but these errors were encountered: